bufpool

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL