encode_dce_preserving_controls

Function encode_dce_preserving_controls 

Source
pub fn encode_dce_preserving_controls(
    dcs: &[u32],
    output_format: &str,
    log: &mut FormatLog,
) -> Result<Vec<u8>>
Expand description

Encodes a sequence of short Dc IDs into a DCE binary or hex-encoded format (dce, 3_0a, 3_0a_raw, 3_01a, 3_01a_raw, 3_02a, 3_02a_raw, and their hex_* variants), respecting any explicit DCE sheet/control Dcs already present in dcs and automatically inserting sheet transitions or framing when absent.

ยงErrors

Returns an error if output_format is not a recognized DCE format.