• Steven Allen's avatar
    Switch to non-buffering byte reader · 021bda15
    Steven Allen authored
    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.
    021bda15
peeker_test.go 1.52 KB