mem

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedPool

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

func NewFixedPool

func NewFixedPool(size int) *FixedPool

func (*FixedPool) GetBlock

func (p *FixedPool) GetBlock() []byte

GetBlock gets a byte slice from pool

func (*FixedPool) PutBlock

func (p *FixedPool) PutBlock(block []byte)

PutBlock releases a byte slice to pool

Jump to

Keyboard shortcuts

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