Documentation ¶
Index ¶
- Variables
- func GetBlockRootsTrie(size int) [][]*[32]byte
- func GetDoubleByteSlice(size int) [][]byte
- func GetRandaoMixesTrie(size int) [][]*[32]byte
- func GetStateRootsTrie(size int) [][]*[32]byte
- func PutBlockRootsTrie(data [][]*[32]byte)
- func PutDoubleByteSlice(data [][]byte)
- func PutRandaoMixesTrie(data [][]*[32]byte)
- func PutStateRootsTrie(data [][]*[32]byte)
Constants ¶
This section is empty.
Variables ¶
var BlockRootsMemoryPool = new(sync.Pool)
BlockRootsMemoryPool represents the memory pool for block roots trie.
var DoubleByteSlicePool = new(sync.Pool)
DoubleByteSlicePool represents the memory pool for 2d byte slices.
var RandaoMixesMemoryPool = new(sync.Pool)
RandaoMixesMemoryPool represents the memory pool for randao mixes trie.
var StateRootsMemoryPool = new(sync.Pool)
StateRootsMemoryPool represents the memory pool for state roots trie.
Functions ¶
func GetBlockRootsTrie ¶ added in v0.3.5
GetBlockRootsTrie retrieves the 3d byte trie of the desired size from the memory pool.
func GetDoubleByteSlice ¶
GetDoubleByteSlice retrieves the 2d byte slice of the desired size from the memory pool.
func GetRandaoMixesTrie ¶ added in v0.3.5
GetRandaoMixesTrie retrieves the 3d byte slice of the desired size from the memory pool.
func GetStateRootsTrie ¶ added in v0.3.5
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.