bufferpool

package
v0.0.0-...-30b4b00 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *bytes.Buffer

Get returns a pooled *bytes.Buffer, reset to empty (ready for Write). Caller MUST call Put() after use to return to pool.

func GetByteBuffer

func GetByteBuffer(minCap int) *bytes.Buffer

GetByteBuffer returns a pooled *bytes.Buffer with capacity >= minCap. Caller MUST call PutByteBuffer(buf) after use.

func Put

func Put(buf *bytes.Buffer)

Put returns a *bytes.Buffer to the pool after Reset(). Caller MUST NOT use buf after calling Put().

func PutByteBuffer

func PutByteBuffer(buf *bytes.Buffer)

PutByteBuffer returns buf to the pool. Caller MUST NOT use buf after calling PutByteBuffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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