Documentation ¶
Index ¶
- Constants
- func AppendEncode(enc []byte, inNode ipld.Node) ([]byte, error)
- func DecodeTrieNode(na ipld.NodeAssembler, in io.Reader, codec uint64) error
- func DecodeTrieNodeBytes(na ipld.NodeAssembler, src []byte, codec uint64) error
- func Encode(node ipld.Node, w io.Writer) error
- type NodeKind
- type ValueKind
Constants ¶
View Source
const ( INNER_NODE NodeKind = "inner" LEAF_NODE NodeKind = "leaf" UNKNOWN_VALUE ValueKind = "unknown" VALIDATOR_VALUE ValueKind = "validator" EVIDENCE_VALUE ValueKind = "evidence" TX_VALUE ValueKind = "tx" COMMIT_VALUE ValueKind = "commit" PART_VALUE ValueKind = "part" RESULT_VALUE ValueKind = "result" HEADER_VALUE ValueKind = "header" )
Variables ¶
This section is empty.
Functions ¶
func AppendEncode ¶
AppendEncode is like Encode, but it uses a destination buffer directly. This means less copying of bytes, and if the destination has enough capacity, fewer allocations.
func DecodeTrieNode ¶
DecodeTrieNode provides an IPLD codec decode interface for Tendermint Merkle tree nodes It's not possible to meet the Decode(na ipld.NodeAssembler, in io.Reader) interface for a function that supports all tree types (multicodec types), unlike with encoding. this is used by Decode functions for each tree type, which are the ones registered to their corresponding multicodec
func DecodeTrieNodeBytes ¶
DecodeTrieNodeBytes is like DecodeTrieNode, but it uses an input buffer directly.
Types ¶
Click to show internal directories.
Click to hide internal directories.