Versions in this module Expand all Collapse all v1 v1.2.0 Aug 11, 2026 Changes in this version + func Append(buf []byte, elems ...byte) []byte + func AppendString(buf []byte, elems string) []byte + func Bytes(len, cap int) (b []byte) + func Get(size int) []byte + func Make(size int) []byte + func New(size int) []byte + func NewBytes(bs []byte) []byte + func NewString(s string) []byte + func Put(buf []byte) + func Release(buf []byte) bool + func SetMaxSize(size int) bool + type CapacityPools struct + func (p *CapacityPools) Append(buf []byte, elems ...byte) []byte + func (p *CapacityPools) AppendString(buf []byte, elems string) []byte + func (p *CapacityPools) Get(size int) []byte + func (p *CapacityPools) Make(capacity int) []byte + func (p *CapacityPools) New(size int) (buf []byte) + func (p *CapacityPools) NewBytes(bs []byte) []byte + func (p *CapacityPools) NewString(s string) []byte + func (p *CapacityPools) Put(buf []byte) + func (p *CapacityPools) Release(buf []byte) bool