Versions in this module Expand all Collapse all v0 v0.18.6 May 1, 2021 v0.18.1 Mar 22, 2021 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