@return byte offset immediately after the last valid byte
(byte[] buf, int bufOff)
| 58 | |
| 59 | /** @return byte offset immediately after the last valid byte */ |
| 60 | public int nextBuf(byte[] buf, int bufOff) { |
| 61 | int sz = bufOff; |
| 62 | while (sz < buf.length && hasNext()) { |
| 63 | buf[sz] = nextByte(); |
| 64 | sz++; |
| 65 | } |
| 66 | return sz; |
| 67 | } |
| 68 | |
| 69 | public abstract long bytesLeft(); |
| 70 |
no test coverage detected