buffer

package
v0.0.0-...-c18a219 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupPool

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

func NewGroupPool

func NewGroupPool(minSize, maxSize int, growFactor float32) *GroupPool

func (*GroupPool) Get

func (p *GroupPool) Get(size int) []byte

func (*GroupPool) Put

func (p *GroupPool) Put(buf []byte)

type Pool

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

func NewPool

func NewPool(size int) *Pool

func (*Pool) Get

func (p *Pool) Get() []byte

func (*Pool) Put

func (p *Pool) Put(buf []byte)

Jump to

Keyboard shortcuts

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