Documentation
¶
Index ¶
- Variables
- func Put(b *Buffer)
- type Buffer
- type Reader
- func (r *Reader) Advance(n int)
- func (r *Reader) AdvanceTo(mark int)
- func (r *Reader) Buffer() *Buffer
- func (r *Reader) Mark() int
- func (r *Reader) Read() error
- func (r *Reader) ReadExact(n int) (data []byte, err error)
- func (r *Reader) ReadLine() (line []byte, err error)
- func (r *Reader) ReadSlice(delim byte) (data []byte, err error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBufferFull err buffer full ErrBufferFull = bufio.ErrBufferFull )
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements buffering for an io.Reader object.
func (*Reader) ReadExact ¶
ReadExact will read n size bytes or return ErrBufferFull. It never contains any I/O operation
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements buffering for an io.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and Flush, will return the error. After all data has been written, the client should call the Flush method to guarantee all data has been forwarded to the underlying io.Writer.
Click to show internal directories.
Click to hide internal directories.