-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of implementing the peek reader, wrap everything in bufio.Reader and lean on it's peek() capabilities. This also allows for a simpler bytes.HasPrefix use for the magic numbers instead of needing to deal with the Endian-ness of the magic bytes -- critically this eliminates the padding for the 48-bit magic bytes header for some compression types.
- Loading branch information
1 parent
49a79c3
commit 295522b
Showing
4 changed files
with
23 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters