Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENOBUF = errors.New("no such buffer can be used") GlobalPool = NewBufferPool(32) )
Functions ¶
Types ¶
type Buffer ¶
func (*Buffer) ReadFromLimited ¶
type BufferPool ¶
func NewBufferPool ¶
func NewBufferPool(blackSize int) *BufferPool
func (*BufferPool) Get ¶
func (this *BufferPool) Get() *Buffer
func (*BufferPool) New ¶
func (this *BufferPool) New() interface{}
func (*BufferPool) Put ¶
func (this *BufferPool) Put(b *Buffer)
Click to show internal directories.
Click to hide internal directories.