Documentation ¶
Overview ¶
TODO Write tests
TODO Write tests ¶
Package input provides various Input implementations for reading from []byte or os.File.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAndDiscard ¶
ReadAndDiscard reads len bytes from the file, and discards them.
Types ¶
type Input ¶
type Input interface { io.Seeker io.Reader io.ReaderAt io.ByteReader Tell() (int64, error) // Here for convenience, perhaps remove. }
Input interface provides the minimum methods needed to parse a binary file. The interface is changed slightly, by ensuring the Read methods always try to do a full read. If they are unable to read the full amount, then a ShortReadError is returned, as well as as much as could be read.
Click to show internal directories.
Click to hide internal directories.