Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffers ¶
type Buffers struct {
// contains filtered or unexported fields
}
Buffers contains buckets for sharding.
func NewBuffers ¶
NewBuffers creates a new Buffers with the given page size.
func (*Buffers) AssignPool ¶
AssignPool assigns a fixed size bytes pool with the given size.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool represents a fixed size bytes pool.
func AssignPool ¶
AssignPool assigns a fixed size bytes pool with the given size.
func (*Pool) GetBufferSize ¶ added in v0.0.2
GetBufferSize returns a bytes from the pool with the given size.
Click to show internal directories.
Click to hide internal directories.