memorypool

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DoubleByteSlicePool = new(sync.Pool)

DoubleByteSlicePool represents the memory pool for 2d byte slices.

Functions

func GetDoubleByteSlice

func GetDoubleByteSlice(size int) [][]byte

GetDoubleByteSlice retrieves the 2d byte slice of the desired size from the memory pool.

func PutDoubleByteSlice

func PutDoubleByteSlice(data [][]byte)

PutDoubleByteSlice places the provided 2d byte slice in the memory pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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