Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BytesPool4k = NewBytesPool(4096, 128)
BytesPool4k is a BytesPool with array size 4096, used as message forwarding buffer.
View Source
var BytesPool64k = NewBytesPool(65536, 16)
BytesPool64k is a BytesPool with array size 65536, primarily used as large header and UDP receive buffer.
Functions ¶
This section is empty.
Types ¶
type BytesPool ¶
type BytesPool struct {
// contains filtered or unexported fields
}
BytesPool is a fixed size byte array pool byte array is fized size, but byte array count is increased automatically.
func NewBytesPool ¶
Click to show internal directories.
Click to hide internal directories.