Versions in this module Expand all Collapse all v2 v2.5.3 Dec 14, 2023 Changes in this version + const MaxSegmentSize + const RelayBufferSize + func Get(size int) []byte + func GetBuffer() *bytes.Buffer + func Put(buf []byte) error + func PutBuffer(buf *bytes.Buffer) + type Allocator struct + func NewAllocator() *Allocator + func (alloc *Allocator) Get(size int) []byte + func (alloc *Allocator) Put(buf []byte) error v2.5.2-dev Dec 14, 2023