utils

package
v0.0.0-...-efcff09 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxSafeInteger = (uint64(1) << 53) - 1
)

Variables

View Source
var (
	// function error
	IncorrectArgumentCount = goja.NewSymbol("Incorrect argument count")

	// ordered map error
	EmptyKeyString = goja.NewSymbol("Empty key string")

	// number overflow
	LargerThanMaxInteger = goja.NewSymbol("Larger than Number.MAX_SAFE_INTEGER")
	OverflowInSigned     = goja.NewSymbol("Overflow in signed multiplication")
)

error

View Source
var (
	MinNegValue = uint256.NewInt(0).Lsh(uint256.NewInt(1), 255)
)

Functions

func GetOneArrayBuffer

func GetOneArrayBuffer(f goja.FunctionCall) []byte

func GetOneUint64

func GetOneUint64(f goja.FunctionCall) uint64

func GetThreeArrayBuffers

func GetThreeArrayBuffers(f goja.FunctionCall) ([]byte, []byte, []byte)

func GetTwoArrayBuffers

func GetTwoArrayBuffers(f goja.FunctionCall) ([]byte, []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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