bcf2_typ_width

Function bcf2_typ_width 

Source
pub fn bcf2_typ_width(typ: u8) -> usize
Expand description

map bcf2 type to width in bytes

typ:

  • 0: MISSING
  • 1: u8 (1 byte)
  • 2: u16 (2 bytes)
  • 3: u32 (3 bytes)
  • 5: f32 (4 bytes)
  • 7: c-char (u8, 1 byte)