bufferpool

package
v0.0.0-...-3df9379 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBufferPool = NewBufferPool()

Functions

This section is empty.

Types

type BufferPool

type BufferPool struct {
	sync.Pool
	sync.Mutex
	// contains filtered or unexported fields
}

func NewBufferPool

func NewBufferPool() *BufferPool

func (*BufferPool) Get

func (bp *BufferPool) Get() []byte

func (*BufferPool) GetAliveBuffers

func (bp *BufferPool) GetAliveBuffers() int

func (*BufferPool) Put

func (bp *BufferPool) Put(a []byte)

Jump to

Keyboard shortcuts

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