scenexpressionreconstructor

package
v1.4.78 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExprReconstructor

type ExprReconstructor struct{}

ExprReconstructor is a component that attempts to convert raw bytes to a human-readable format.

func (*ExprReconstructor) Reconstruct

func (er *ExprReconstructor) Reconstruct(value []byte, hint ExprReconstructorHint) string

func (*ExprReconstructor) ReconstructFromBigInt

func (er *ExprReconstructor) ReconstructFromBigInt(value *big.Int) string

func (*ExprReconstructor) ReconstructFromUint64

func (er *ExprReconstructor) ReconstructFromUint64(value uint64) string

func (*ExprReconstructor) ReconstructList

func (er *ExprReconstructor) ReconstructList(values [][]byte, hint ExprReconstructorHint) string

type ExprReconstructorHint

type ExprReconstructorHint uint64
const (
	// NoHint indicates that the type if not known
	NoHint ExprReconstructorHint = iota

	// NumberHint hints that value should be a number
	NumberHint

	// AddressHint hints that value should be an address
	AddressHint

	// StrHint hints that value should be a string expression, e.g. a username, "str:..."
	StrHint

	// CodeHint hints that value should be a smart contract code, normally loaded from a file
	CodeHint
)

Jump to

Keyboard shortcuts

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