(r *bufio.Reader, sz int)
| 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) { |
| 33 | if n < 0 { |
| 34 | return sz, nil |
| 35 | } |
| 36 | return discardN(r, sz, n) |
| 37 | }) |
| 38 | } |
no test coverage detected