memorypool

package
v1.0.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockRootsMemoryPool = new(sync.Pool)

BlockRootsMemoryPool represents the memory pool for block roots trie.

View Source
var DoubleByteSlicePool = new(sync.Pool)

DoubleByteSlicePool represents the memory pool for 2d byte slices.

View Source
var RandaoMixesMemoryPool = new(sync.Pool)

RandaoMixesMemoryPool represents the memory pool for randao mixes trie.

View Source
var StateRootsMemoryPool = new(sync.Pool)

StateRootsMemoryPool represents the memory pool for state roots trie.

Functions

func GetBlockRootsTrie added in v0.3.5

func GetBlockRootsTrie(size int) [][]*[32]byte

GetBlockRootsTrie retrieves the 3d byte trie of the desired size from the memory pool.

func GetDoubleByteSlice

func GetDoubleByteSlice(size int) [][]byte

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

func GetRandaoMixesTrie added in v0.3.5

func GetRandaoMixesTrie(size int) [][]*[32]byte

GetRandaoMixesTrie retrieves the 3d byte slice of the desired size from the memory pool.

func GetStateRootsTrie added in v0.3.5

func GetStateRootsTrie(size int) [][]*[32]byte

GetStateRootsTrie retrieves the 3d byte slice of the desired size from the memory pool.

func PutBlockRootsTrie added in v0.3.5

func PutBlockRootsTrie(data [][]*[32]byte)

PutBlockRootsTrie places the provided 3d byte trie in the memory pool.

func PutDoubleByteSlice

func PutDoubleByteSlice(data [][]byte)

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

func PutRandaoMixesTrie added in v0.3.5

func PutRandaoMixesTrie(data [][]*[32]byte)

PutRandaoMixesTrie places the provided 3d byte slice in the memory pool.

func PutStateRootsTrie added in v0.3.5

func PutStateRootsTrie(data [][]*[32]byte)

PutStateRootsTrie places the provided trie 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