Versions in this module Expand all Collapse all v1 v1.0.1 Nov 22, 2024 Changes in this version + type Buffer struct + func (b *Buffer[T]) GetFullData() []T + func (b *Buffer[T]) GetLength() int + func (b *Buffer[T]) GetValidData() []T + func (b *Buffer[T]) Release() + func (b *Buffer[T]) SetLength(len int) + type Pool struct + func NewPool[T any]() *Pool[T] + func (p *Pool[T]) Acquire() (*Buffer[T], bool) + func (p *Pool[T]) Available() int + func (p *Pool[T]) BufferChan() <-chan *Buffer[T] + func (p *Pool[T]) Init(bufCount, bufSize int) error + func (p *Pool[T]) Release() + func (p *Pool[T]) Reset()