Versions in this module Expand all Collapse all v1 v1.0.0 Mar 19, 2024 Changes in this version + func Put(buf *Buffer) error + type Allocator struct + func NewAllocator() *Allocator + func (alloc *Allocator) Get(size int) *Buffer + func (alloc *Allocator) Put(b *Buffer) error + type Buffer struct + B []byte + func Get(size int) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Cap() int + func (b *Buffer) Reset() + func (b *Buffer) SetLen(len int)