Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlicePool ¶
type SlicePool struct {
// contains filtered or unexported fields
}
SlicePool is a pool of []byte. Typically *[]byte is preferred to avoid heap allocation. However in our case, the slice sizes are different, making them not feasible to reuse directly, so we only reuse the underlying array.
func NewSlicePool ¶
Click to show internal directories.
Click to hide internal directories.