Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesPool ¶
type BytesPool struct {
// contains filtered or unexported fields
}
func NewBytesPool ¶
poolSize is the maximum number of elements can be stored in pool bytesLength is the size of byte array, like cap([]byte{})
func (*BytesPool) Allocations ¶
type NoOpBytesPool ¶
type NoOpBytesPool struct {
// contains filtered or unexported fields
}
func NewNoOpBytesPool ¶
func NewNoOpBytesPool(bytesLength int) *NoOpBytesPool
poolSize is the maximum number of elements can be stored in pool bytesLength is the size of byte array, like cap([]byte{})
func (*NoOpBytesPool) BytesLen ¶
func (a *NoOpBytesPool) BytesLen() int
func (*NoOpBytesPool) Get ¶
func (a *NoOpBytesPool) Get() []byte
func (*NoOpBytesPool) Put ¶
func (a *NoOpBytesPool) Put([]byte)
Click to show internal directories.
Click to hide internal directories.