Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFromBuf ¶
func GetFromBuf() *[]byte
GetFromBuf returns a pointer to a byte slice from the buffer pool. The returned slice has length 0 and can be appended to.
func PutIntoBuf ¶
func PutIntoBuf(b *[]byte)
PutIntoBuf returns a byte slice to the buffer pool for reuse. If the slice capacity is too large, it is reset to a smaller buffer to avoid retaining excessive memory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.