Documentation ¶
Index ¶
- func DecodeBlockTx(data []byte, typeFilter transactions.TxType) (transactions.ContractCall, uint32, error)
- func EncodeBlockTx(tx transactions.ContractCall, txIndex uint32) ([]byte, error)
- func ReadUint32(r io.Reader, v *uint32) error
- func ReadUint64(r io.Reader, v *uint64) error
- func Search(n uint64, f func(uint64) (bool, error)) (uint64, error)
- func WriteUint32(w io.Writer, value uint32) error
- func WriteUint64(w io.Writer, value uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBlockTx ¶
func DecodeBlockTx(data []byte, typeFilter transactions.TxType) (transactions.ContractCall, uint32, error)
DecodeBlockTx tries to deserialize the type, index and decoded value of a tx.
func EncodeBlockTx ¶
func EncodeBlockTx(tx transactions.ContractCall, txIndex uint32) ([]byte, error)
EncodeBlockTx tries to serialize type, index and encoded value of transactions.ContractCall.
func ReadUint32 ¶
ReadUint32 will read four bytes and convert them to a uint32 from the Tx byteOrder. The result is put into v.
func ReadUint64 ¶ added in v0.5.0
ReadUint64 will read four bytes and convert them to a uint64 from the Tx byteOrder. The result is put into v.
func WriteUint32 ¶
WriteUint32 Tx utility to use a Tx byteOrder on internal encoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.