Documentation
¶
Index ¶
- func DecodeBlockTx(data []byte, typeFilter transactions.TxType) (transactions.Transaction, uint32, error)
- func EncodeBlockTx(tx transactions.Transaction, txIndex uint32) ([]byte, error)
- func ReadUint32(r io.Reader, v *uint32) 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.Transaction, uint32, error)
func EncodeBlockTx ¶
func EncodeBlockTx(tx transactions.Transaction, txIndex uint32) ([]byte, error)
encodeBlockTx tries to serialize type, index and encoded value of transactions.Transaction
func ReadUint32 ¶
ReadUint32 will read four bytes and convert them to a uint32 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.