pub fn data_length(flag: u8) -> u8 {
        let length: u8 = match flag {
            0xfd => 2,
            0xfe => 4,
            0xff => 8,
            _ => 0,
        };
        length
    }
/// Determines the length of a CompactInt in bytes.
/// A CompactInt of > 1 byte is prefixed with a flag indicating its length.
///
/// # Arguments
///
/// * `flag` - The first byte of a compact_int
Determines the length of a CompactInt in bytes.
A CompactInt of > 1 byte is prefixed with a flag indicating its length.
Determines the length of a CompactInt in bytes . A CompactInt of > 1 byte is prefixed with a flag indicating its length .
pub fn data_length(flag: u8) -> u8 {
        let length: u8 = match flag {
            0xfd => 2,
            0xfe => 4,
            0xff => 8,
            _ => 0,
        };
        length
    }
pub fn data_length ( flag : u8 ) -> u8 { let length : u8 = match flag { 0xfd => 2 , 0xfe => 4 , 0xff => 8 , _ => 0 , } ; length }
Determines the length of a CompactInt in bytes.
Determines the length of a CompactInt in bytes .
flag
u8
flag
u8