(r *bufio.Reader, sz int)
| 20 | } |
| 21 | |
| 22 | func discardString(r *bufio.Reader, sz int) (int, error) { |
| 23 | return readStringWith(r, sz, func(r *bufio.Reader, sz int, n int) (int, error) { |
| 24 | if n < 0 { |
| 25 | return sz, nil |
| 26 | } |
| 27 | return discardN(r, sz, n) |
| 28 | }) |
| 29 | } |
| 30 | |
| 31 | func discardBytes(r *bufio.Reader, sz int) (int, error) { |
| 32 | return readBytesWith(r, sz, func(r *bufio.Reader, sz int, n int) (int, error) { |
no test coverage detected