pool

package
v0.0.0-...-249e25c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPool = New(10)

DefaultPool ...

Functions

func Get

func Get(size int) *[]byte

Get ...

func MaxSize

func MaxSize() int

MaxSize ...

func Put

func Put(b *[]byte)

Put ...

Types

type Pool

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

Pool ...

func New

func New(n int) *Pool

New ...

func (*Pool) Get

func (p *Pool) Get(size int) (b *[]byte)

Get ...

func (*Pool) MaxSize

func (p *Pool) MaxSize() int

MaxSize ...

func (*Pool) Put

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

Put ...

Jump to

Keyboard shortcuts

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