bigint

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(data []byte) *big.Int

FromBytes converts data in little-endian format to an integer.

func ToBytes

func ToBytes(n *big.Int) []byte

ToBytes converts integer to a slice in little-endian format. Note: NEO3 serialization differs from default C# BigInteger.ToByteArray()

when n == 0. For zero is equal to empty slice in NEO3.

https://github.com/neo-project/neo-vm/blob/master/src/neo-vm/Types/Integer.cs#L16

func ToPreallocatedBytes

func ToPreallocatedBytes(n *big.Int, data []byte) []byte

ToPreallocatedBytes converts integer to a slice in little-endian format using given byte array for conversion result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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