pool

package
v10.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferPool

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

func NewBufferPool

func NewBufferPool(size int) *BufferPool

func (*BufferPool) Get

func (p *BufferPool) Get() *bytes.Buffer

func (*BufferPool) Put

func (p *BufferPool) Put(b *bytes.Buffer)

type SlicePool

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

func NewSlicePool

func NewSlicePool(size int) *SlicePool

func (*SlicePool) Get

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

func (*SlicePool) Put

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

Jump to

Keyboard shortcuts

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