Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Linearizer ¶
type Linearizer struct {
// contains filtered or unexported fields
}
Linearizer represents an object capable of linearizing data coming from an io.Reader as packets
func NewLinearizer ¶
NewLinearizer creates a new linearizer that will read readSize bytes at each iteration, write it in its internal buffer capped at bufferSize bytes and allow reading this linearized data.
func (*Linearizer) Close ¶
func (l *Linearizer) Close() error
Close implements the io.Closer interface
func (*Linearizer) Read ¶
func (l *Linearizer) Read(b []byte) (n int, err error)
Read implements the io.Reader interface
func (*Linearizer) Start ¶
func (l *Linearizer) Start()
Start reads the reader and dispatches events accordingly
Click to show internal directories.
Click to hide internal directories.