Module document

Module document 

Source
Expand description

Conversion between dceutils formats (CdceLegacy, Dce, Dce_3_0a, Dce_3_01a, etc.) and DcMstring.

Supported short Dc repertoires by DCE format version:

  • DCE 3.0a (3_0a, 3_0a_raw, hex_3_0a, hex_3_0a_raw): short Dcs 0..=115 (excluding 2..=12, which had no byte mappings in 3.0a).
  • DCE 3.01a (3_01a, 3_01a_raw, hex_3_01a, hex_3_01a_raw) and dce / hex_dce: short Dcs 0..=199, unlocking Base64 encapsulation (Dc 191 .. Dc 127..=190 / Dc 195 .. Dc 192) for data and UTF-8.
  • DCE 3.02a (3_02a, 3_02a_raw, hex_3_02a, hex_3_02a_raw): stubbed (returns an error when invoked; version selector in DCE_Version_Selectors is TBD).

Unlike EITE formats, dceutils formats do not support Dc 308 (Next number is a long (global graph) Dc). Unrepresentable characters are logged as warnings in FormatLog. Import removes the outer file envelope, retains body encoding controls, and validates or repairs UTF-8 encapsulations through shared document conversion APIs.

Functionsยง

dceutils_to_dcmstring_with_options
Converts a dceutils format byte slice to DcMstring.
dcmstr_to_dceutils_with_options
Encodes a document using shared Unicode conversion and UTF-8 recovery.
dcmstring_to_dceutils
Converts a DcMstring to a dceutils format byte vector.