Module varint

Module varint 

Source
Expand description

Bitcoin compact size combinator composed of regular Vest combinators.

Structs§

BtVarintCont
Continuation for parsing and serializing Bitcoin variable-length integers
BtcVarint
Combinator for parsing and serializing Bitcoin variable-length integers
PredU16LeFit
Predicate for checking if a u16 is greater than or equal to 0xFD
PredU32LeFit
Predicate for checking if a u32 is greater than or equal to 0x10000
PredU64LeFit
Predicate for checking if a u64 is greater than or equal to 0x100000000
VarIntMapper
Mapper for converting between Bitcoin variable-length integers and their internal representations

Enums§

VarInt
Enum representing a Bitcoin variable-length integer

Constants§

SPEC_TAG_U16
SPEC_TAG_U32
SPEC_TAG_U64

Statics§

EMPTY
EMPTY_SLICE
TAG_U16
TAG_U32
TAG_U64

Functions§

spec_btc_varint_inner