Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFrameTooLarge = fmt.Errorf("frame: frame size exceeds maximum")
ErrFrameTooLarge is an error that is returned if a frame that is larger than the maximum allowed size (not including the frame header) is read.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { // ReadFrame reads the next frame, returning the frame's size and an io.Reader // for that frame's data. The io.Reader is restricted such that it cannot read // past the frame. // // The frame must be fully read before another Reader call can be made. // Failure to do so will cause the Reader to become unsynchronized. ReadFrame() (int64, io.Reader, error) // ReadFrame returns the contents of the next frame. If there are no more // frames available, ReadFrame will return io.EOF. ReadFrameAll() ([]byte, error) }
Reader reads individual frames from a frame-formatted input Reader.
Click to show internal directories.
Click to hide internal directories.