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
}
BufferPool represents a buffer pool container.
func NewBufferPool ¶
func NewBufferPool() *BufferPool
NewBufferPool returns a new buffer pool instance.
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() *bytes.Buffer
Get returns a buffer instance from the pool.
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(buf *bytes.Buffer)
Put returns a buffer instance to the pool.
Click to show internal directories.
Click to hide internal directories.