Switch to non-buffering byte reader
Buffering could lead to reading over the end of the object, corrupting the next object. This patch also gets rid of "PeekByte" and uses the standard ReadByte/UnreadByte interfaces. That way, we can avoid wrapping the byte reader in the happy path, saving some overhead.
Showing
peeker.go
0 → 100644
peeker_test.go
0 → 100644
Please register or sign in to comment