dcarray_to_dclist

Function dcarray_to_dclist 

Source
pub fn dcarray_to_dclist(dc_array: &[u32]) -> Result<ConversionOutput<DcList>>
Expand description

Converts an EITE DcArray (short Dcs, &[u32]) to a DcList (Vec<u128>).

Handles:

  • Escaped Dc 308 ([255, 308] -> long Dc 1_114_420).
  • Escaped Dc 255 ([255, 255] -> long Dc 1_114_367).
  • Standalone Dc 255 ([255] -> long Dc 1_114_367).
  • Embedded long Dc IDs ([308, ...DcNumber...] -> decoded u128 long Dc ID).
  • Direct short Dcs c -> mapped to SHORT_DC_OFFSET + c (1_114_112 + c).