Documentation
¶
Index ¶
- type Buffer
- func (e *Buffer) ReadByte() (byte, error)
- func (e *Buffer) ReadBytes(count int) ([]byte, error)
- func (e *Buffer) ReadableBytes() int
- func (e *Buffer) Reset()
- func (e *Buffer) TryRead(reader func(data []byte) (int, bool)) (int, bool)
- func (e *Buffer) WritableBytes() int
- func (e *Buffer) WriteBytes(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
Max int // 可自动扩容的极限大小
// contains filtered or unexported fields
}
func (*Buffer) ReadableBytes ¶
func (*Buffer) WritableBytes ¶
func (*Buffer) WriteBytes ¶
Click to show internal directories.
Click to hide internal directories.