@blockchaincommons/dcbor - v1.0.0-beta.3
    Preparing search index...

    Interface ExpectUnsignedOptions

    Options for expectUnsigned: extract into a fixed-width unsigned integer the way the reference's u8/u16/u32/u64: TryFrom<CBOR> do (dcbor 0.25.2 int.rs).

    interface ExpectUnsignedOptions {
        width: 8 | 16 | 32 | 64;
        wrapNegative?: boolean;
    }
    Index
    width: 8 | 16 | 32 | 64

    Target width in bits; an unsigned value above 2^width − 1 is OutOfRange.

    wrapNegative?: boolean

    Also accept a negative integer node and wrap it as the reference does: a value v in [−2^width, −1] yields 2^width + v (so −1 is 255 at width 8), and a value below −2^width is OutOfRange. Off by default: without it a negative node is WrongType, as for every other type. See RUST_DIVERGENCES.md §1.1.