Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func NewBufferPool ¶
func NewBufferPool() *BufferPool
func NewBufferPoolWithSize ¶
func NewBufferPoolWithSize(buffInitSize int) *BufferPool
func (*BufferPool) Get ¶
func (p *BufferPool) Get() RecyclableBuffer
func (*BufferPool) Put ¶
func (p *BufferPool) Put(b RecyclableBuffer)
type RecyclableBuffer ¶
func (RecyclableBuffer) Close ¶
func (b RecyclableBuffer) Close() error
func (RecyclableBuffer) Closed ¶
func (b RecyclableBuffer) Closed() bool
Click to show internal directories.
Click to hide internal directories.