IsEmpty returns true when all of the data has been read.
()
| 382 | |
| 383 | // IsEmpty returns true when all of the data has been read. |
| 384 | func (reader *Reader) IsEmpty() bool { |
| 385 | return reader.offset >= uint64(len(reader.buf)) |
| 386 | } |
| 387 | |
| 388 | // RemainingBytes returns the number of bytes that have not yet been read. |
| 389 | func (reader *Reader) RemainingBytes() uint64 { |
no outgoing calls
no test coverage detected