Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireBuffer ¶
func AcquireBuffer() []byte
AcquireBuffer returns a byte slice from the buffer pool with a default size.
func AcquireBufferN ¶
AcquireBufferN returns a byte slice of the specified length from the buffer pool.
func ReleaseBuffer ¶
func ReleaseBuffer(b []byte)
ReleaseBuffer adds the specified byte slice back to the buffer pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.