Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Write(data interface{}) TryRead(to func(data []byte) error) Read(to func(data []byte)) Bytes() ([]byte, error) Err() error }
func New ¶
newEntryReadWriter create a new read/writer from an existing buffer.
If a nil or empty buffer is supplied, reading from the read/writer will cause an error (io.EOF) Nevertheless, if a valid non-empty buffer is given, the read/writer will start reading from the beginning of that buffer, and will start writting at the end of it.
Click to show internal directories.
Click to hide internal directories.