Versions in this module Expand all Collapse all v0 v0.0.1 Dec 14, 2019 Changes in this version + func GetBytes(size int) *[]byte + func GetBytesBuffer() *bytes.Buffer + func PutBytes(buf *[]byte) + func PutBytesBuffer(buf *bytes.Buffer) + type New func() PoolObject + type ObjectPool struct + New New + func NewObjectPool(n New) *ObjectPool + func (p *ObjectPool) Get() PoolObject + func (p *ObjectPool) Put(o PoolObject) + type PoolObject interface + Reset func() + type SlicePool struct + func NewSlicePool() *SlicePool + func (p *SlicePool) Get(size int) *[]byte + func (p *SlicePool) Put(buf *[]byte)