Versions in this module Expand all Collapse all v1 v1.6.0 Apr 5, 2025 v1.4.0 Oct 6, 2024 Changes in this version + const StrategyMultiSlicePoolBucket + const StrategyMultiStdPoolBucket + func Get(size int) []byte + func Init(strategy Strategy) + func Put(buf []byte) + type Bucket interface + Get func(size int) []byte + Put func(buf []byte) + type ModSharedSliceByteOption func(option *SharedSliceByteOption) + func WithPool(pool SliceBytePool) ModSharedSliceByteOption + type SharedSliceByte struct + Core []byte + func NewSharedSliceByte(size int, modOptions ...ModSharedSliceByteOption) *SharedSliceByte + func WrapSharedSliceByte(b []byte, modOptions ...ModSharedSliceByteOption) *SharedSliceByte + func (ssb *SharedSliceByte) Ref() *SharedSliceByte + func (ssb *SharedSliceByte) ReleaseIfNeeded() + type SharedSliceByteOption struct + type SliceBucket struct + func NewSliceBucket() *SliceBucket + func (b *SliceBucket) Get(size int) []byte + func (b *SliceBucket) Put(buf []byte) + type SliceBytePool interface + Get func(size int) []byte + Put func(buf []byte) + RetrieveStatus func() Status + func NewSliceBytePool(strategy Strategy) SliceBytePool + type Status struct + func RetrieveStatus() Status + type StdPoolBucket struct + func NewStdPoolBucket() *StdPoolBucket + func (b *StdPoolBucket) Get(size int) []byte + func (b *StdPoolBucket) Put(buf []byte) + type Strategy int