Documentation ¶
Overview ¶
package bufin implements a partially static buffed input reader. It is very similar to the standard library bufio.Reader so that is almost always prefered over the following package. bufin is implemented to track and have full control over reading data from a socket. It's used internally by the exp redis client.
Index ¶
- Constants
- Variables
- type Reader
- func (b *Reader) Buffered() int
- func (b *Reader) Copy(p []byte) (n int, e error)
- func (b *Reader) Incr(n int) int
- func (b *Reader) IndexSlice(delim byte) (line []byte, err error)
- func (b *Reader) Read(p []byte) (n int, e error)
- func (b *Reader) ReadSlice(delim byte) (line []byte, err error)
- func (b *Reader) Reset() bool
- func (b *Reader) String() string
Constants ¶
View Source
const IOBUFLEN = 1024
Variables ¶
View Source
var ( ErrFullBuf = errors.New("Full buffer") ErrNotFound = errors.New("Not found") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.