RemainderCountNodeA node that represents a count strategy where the number of items is unknown and inferred by the remainder of the bytes. When encoding, the items are encoded as-is without storing the total count. When decoding, items are decoded one by one until the end of the buffer is reached.
This enables nodes such as ArrayTypeNode to represent variable arrays at the end of buffers.
| Attribute | Type | Description |
|---|---|---|
kind |
"remainderCountNode" |
The node discriminator. |
This node has no children.
remainderCountNode()Helper function that creates a RemainderCountNode object.
const node = remainderCountNode();
arrayTypeNode(publicKeyTypeNode(), remainderCountNode());