Documentation
¶
Index ¶
- Variables
- type RingBytes
- func (r *RingBytes) Cap() int
- func (r *RingBytes) Free() int
- func (r *RingBytes) IsEmpty() bool
- func (r *RingBytes) IsFull() bool
- func (r *RingBytes) Len() int
- func (r *RingBytes) Peek(n int) ([]byte, error)
- func (r *RingBytes) Read(n int) ([]byte, error)
- func (r *RingBytes) Reset()
- func (r *RingBytes) Skip(n int) error
- func (r *RingBytes) String() string
- func (r *RingBytes) Write(p []byte) (int, error)
- func (r *RingBytes) WriteN(p []byte, n int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTooManyToWrite 内容太长,无法写入 ErrTooManyToWrite = errors.New("too many data to write") // ErrInvalidBuffer 用于读取的 buffer 无效 ErrInvalidBuffer = errors.New("invalid buffer") // ErrNotEnough 数据不足以读取长度 n 的内容 ErrNotEnough = errors.New("not enough data") // ErrInvalidSkipSize 无效的长度 ErrInvalidSkipSize = errors.New("invalid skip size") // ErrIsFull 缓冲区已满 ErrIsFull = errors.New("buffer is full") // ErrIsEmpty 缓冲区已满 ErrIsEmpty = errors.New("buffer is empty") // ErrInvalidLength 无效长度 ErrInvalidLength = errors.New("invalid length") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.