Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferWriter ¶
type BufferWriter struct {
// contains filtered or unexported fields
}
func NewWriterSize ¶
func NewWriterSize(n int) *BufferWriter
func (*BufferWriter) Peek ¶
func (w *BufferWriter) Peek(n int) []byte
Peek 获取缓冲区的一块内存地址(即:返回的内存会被调用方执行写入操作)
type Hash ¶
type Hash struct { Readers []Pool // Reader池子 Writers []Pool // Writer池子 // contains filtered or unexported fields }
func (*Hash) ReaderPool ¶
ReaderPool get a reader memory buffer.
func (*Hash) WriterPool ¶
WriterPool get a writer memory buffer pool.
type Options ¶
type Options struct { ReadPool PoolOptions `yaml:"readPoolOption"` WritePool PoolOptions `yaml:"writePoolOption"` }
type PoolOptions ¶
Click to show internal directories.
Click to hide internal directories.