Documentation
¶
Overview ¶
Package mem uses multiple sync pools of byte slices to provide allocation-free buffers of various sizes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alloc ¶
Alloc returns a memory block of at least the indicated byte size. The length of the buffer is 0.
Example:
block := mem.Alloc() defer mem.Free(block)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.