Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer interface { Len() int64 // How much data is Buffered in bytes Cap() int64 // How much data can be Buffered at once in bytes. io.Reader // Read() will read from the top of the buffer [io.EOF if empty] io.Writer // Write() will write to the end of the buffer [io.ErrShortWrite if not enough space] Reset() // Truncates the buffer, Len() == 0. }
Buffer is used to Write() data which will be Read() later.
Click to show internal directories.
Click to hide internal directories.