Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
BufferPool is a bucketed pool for variably bytes buffers.
func NewBuffer ¶
func NewBuffer(minSize, maxSize int, factor float64) *BufferPool
NewBuffer a new Pool with size buckets for minSize to maxSize increasing by the given factor.
Click to show internal directories.
Click to hide internal directories.