Documentation
¶
Overview ¶
Pool of reuseable data structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixedPoolFilterFunc ¶
Types ¶
type ByteBufPool ¶
type ByteBufPool struct {
MaxCap int // default max cap is 4096 bytes.
// contains filtered or unexported fields
}
func NewByteBufferPool ¶
func NewByteBufferPool(initCap int) *ByteBufPool
func (*ByteBufPool) Get ¶
func (b *ByteBufPool) Get() *bytes.Buffer
func (*ByteBufPool) Put ¶
func (b *ByteBufPool) Put(buf *bytes.Buffer)
type EphPool ¶
type EphPool[T any] struct { // contains filtered or unexported fields }
func NewEphPool ¶
Click to show internal directories.
Click to hide internal directories.