Documentation
¶
Overview ¶
Package objectpool provides object pool.
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
}
BufferPool represents the buffer object pool.
func NewBufferPool ¶
func NewBufferPool() *BufferPool
NewBufferPool creates a new bytes.Buffer object pool.
func (*BufferPool) Get ¶
func (p *BufferPool) Get() *bytes.Buffer
Get takes the buffer from the pool.
func (*BufferPool) Put ¶
func (p *BufferPool) Put(buf *bytes.Buffer)
Put puts buffer back into the pool.
Click to show internal directories.
Click to hide internal directories.