convert_cscjournal_to_dcmstring

Function convert_cscjournal_to_dcmstring 

Source
pub fn convert_cscjournal_to_dcmstring(
    bytes: &[u8],
) -> Result<(DcMstring, FormatLog)>
Expand description

Converts any in-memory cscjournal bytes (legacy or v4+) to a DcMstring document.

Legacy journal versions (revisions 1..=3) are converted to the current Dc format, and then the 8 leading magic bytes are removed from the beginning of the converted data, yielding a native DcMixed document.