Documentation ¶
Index ¶
- Constants
- Variables
- func BytesReverse(u []byte) []byte
- func BytesToHexString(data []byte) string
- func CompareHeight(blockHeight uint64, heights []uint64) bool
- func GetUint16Array(source []byte) ([]uint16, error)
- func HexStringToBytes(value string) ([]byte, error)
- func HexStringToBytesReverse(value string) ([]byte, error)
- func ToByteArray(source []uint16) []byte
- type Fixed64
- type Uint168
- func (u *Uint168) CompareTo(o Uint168) int
- func (u *Uint168) Deserialize(r io.Reader) error
- func (u *Uint168) Serialize(w io.Writer) (int, error)
- func (self Uint168) String() string
- func (u *Uint168) ToAddress() (string, error)
- func (u *Uint168) ToArray() []byte
- func (u *Uint168) ToArrayReverse() []byte
- func (u *Uint168) Valid() bool
- type Uint256
Constants ¶
View Source
const UINT168SIZE = 21
This is a magical change of Uint168, with length from 20 to 21. In fact, It is UINT168 now.
View Source
const UINT256SIZE int = 32
Variables ¶
View Source
var EmptyValue = Uint168{}
Functions ¶
func BytesReverse ¶
func BytesToHexString ¶
func CompareHeight ¶
func GetUint16Array ¶
func HexStringToBytes ¶
func HexStringToBytesReverse ¶
func ToByteArray ¶
Types ¶
type Uint168 ¶
type Uint168 [UINT168SIZE]uint8
func Uint168FromBytes ¶
func Uint68FromAddress ¶
func (*Uint168) ToArrayReverse ¶
type Uint256 ¶
type Uint256 [UINT256SIZE]uint8
func Uint256ParseFromBytes ¶
func (*Uint256) ToArrayReverse ¶
Click to show internal directories.
Click to hide internal directories.