utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashLength      = 32
	MaxIntBytes     = 32
	MaxClosureDepth = 1024
)

Variables

View Source
var (
	BlankHash = make([]byte, HashLength, HashLength)
	ZeroHash  = hashes.Keccak256(nil)
)

Functions

func BytesCopy

func BytesCopy(dst []byte, data []byte)

func GetDataFrom

func GetDataFrom(src []byte, offset uint64, size uint64) []byte

func HexToBytes

func HexToBytes(val []byte, receiver *[]byte, allowOdd bool) error

func LeftPaddingSlice

func LeftPaddingSlice(src []byte, toSize int) []byte

func RightPaddingSlice

func RightPaddingSlice(src []byte, toSize int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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