Skip to main content

decode_payload_with_opts

Function decode_payload_with_opts 

Source
pub fn decode_payload_with_opts(
    bytes: &[u8],
    total_bits: usize,
    opts: DecodeOpts,
) -> Result<Descriptor, Error>
Expand description

Decode a Descriptor from the canonical payload bit stream, honoring opts (P0 partial-decode; see DecodeOpts for the contract). bytes may be zero-padded; total_bits is the exact payload bit count.