Function bitcoin_internals::compact_size::encode
source ยท pub fn encode(value: impl ToU64) -> ArrayVec<u8, MAX_ENCODING_SIZE>
Expand description
Encodes CompactSize
without allocating.
pub fn encode(value: impl ToU64) -> ArrayVec<u8, MAX_ENCODING_SIZE>
Encodes CompactSize
without allocating.