bufpool

package
v3.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func New

func New(name string, n int, defaultSize int) *Pool

func (*Pool) Get

func (p *Pool) Get(size int, grow bool) *bytes.Buffer

func (*Pool) GrowBuffer added in v3.18.1

func (p *Pool) GrowBuffer(buf *bytes.Buffer, cap int)

GrowBuffer growth capacity of the buffer to the normalized provided value

func (*Pool) Put

func (p *Pool) Put(buf *bytes.Buffer)

Jump to

Keyboard shortcuts

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