binary

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidBase is returned when base is invalid.
	ErrInvalidBase = errors.New("invalid base")
	// ErrInvalidFormat is returned when string is not a number.
	ErrInvalidFormat = errors.New("invalid format")
)

Functions

func Atoi

func Atoi(ic *interop.Context) error

Atoi converts string to number.

func DecodeBase58

func DecodeBase58(ic *interop.Context) error

DecodeBase58 decodes top stack item from base58 string to byte array.

func DecodeBase64

func DecodeBase64(ic *interop.Context) error

DecodeBase64 decodes top stack item from base64 string to byte array.

func Deserialize

func Deserialize(ic *interop.Context) error

Deserialize deserializes ByteArray from a stack into an item.

func EncodeBase58

func EncodeBase58(ic *interop.Context) error

EncodeBase58 encodes top stack item into a base58 string.

func EncodeBase64

func EncodeBase64(ic *interop.Context) error

EncodeBase64 encodes top stack item into a base64 string.

func Itoa

func Itoa(ic *interop.Context) error

Itoa converts number to string.

func Serialize

func Serialize(ic *interop.Context) error

Serialize serializes top stack item into a ByteArray.

Types

This section is empty.

Jump to

Keyboard shortcuts

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