Expand description
Mixed-mode Document Character String (DcMstring, DcMstr) for the DcMixed
format (.dcmm).
Provides borrowed and owned types for DcTF mixed-mode data containing embedded binary payloads with direct (non-base64) storage and optional SHA-256 integrity verification.
Structs§
- DcMixed
Chunks - An iterator yielding
DcMixedchunks from payload bytes. - DcMstr
- A borrowed slice representing valid
DcMixedformat data (.dcmm). Analogous toDcStrand Rust’sstr. - DcMstring
- An owned, growable buffer containing valid
DcMixed(Dc mixed mode) format data (.dcmm). Analogous toDcStringand Rust’sString. - Dcmm
Stream Options - Options controlling streaming validation and copying of
.dcmmstreams. - Format
Log
Enums§
- DcMixed
- A segment of data in a
DcMixeddocument. - DcMixed
Error - Errors encountered while parsing or validating
DcMixed/DcMstringdata. - DcMixed
Owned - An owned segment of data in a
DcMixeddocument.
Constants§
- DCMM_
HEADER_ LEN - Total length of the
DcMixeddocument header (21 bytes). - DCMM_
MAGIC - Magic header bytes for the
DcMixedformat (DcMM\0). - DCMM_
UUID - Binary equivalent of
DcMixed2format UUIDb0327a84-b745-492c-b39d-77c2827e3a6f. - DCMM_
UUID_ V1 - Binary equivalent of legacy
DcMixed1format UUIDd5ab819e-9b8e-4d61-adbc-933e8851e79a. - DC_
203_ BYTES - Pre-computed DcTF byte sequence for
Dc 203(SHORT_DC_REGION_START + 203). - DC_
203_ BYTES_ V1 - Pre-computed legacy UTF-8e-128 (
DcUtf) byte sequence forDc 203(SHORT_DC_REGION_START + 203). - DC_
END_ ENCAPSULATION_ BINARY - See description for 203 (Dc 204).
- DC_
START_ ENCAPSULATION_ BINARY - Arbitrary binary data (base64 encoded, no semantic significance assigned to it unless optional type is specified). Optional length counts decoded payload bytes; optional checksum covers those bytes. (Dc 203).
- TYPE_
BINARY - Type byte indicating direct binary encapsulation (unchecksummed).
- TYPE_
BINARY_ METADATA - Direct binary payload with a length-delimited DcTF metadata block.
- TYPE_
BINARY_ SHA256 - Type byte indicating direct binary encapsulation with a 32-byte SHA-256 checksum.
Functions§
- dcmm1_
to_ dcmstring - Decodes legacy
DcMixed1(.dcmmv1, usingDcUtf) bytes into aDcMstring(DcMixed2). - dcmm1_
to_ dcmstring_ with_ options - Decodes legacy
DcMixed1(.dcmmv1, usingDcUtf) bytes into aDcMstringwith explicit strict or permissive (best_effort) options. - dcmm2_
to_ dcmstring - Decodes in-memory
DcMixed2(.dcmm) bytes into aDcMstring. - dcmm2_
to_ dcmstring_ with_ options - Decodes in-memory
DcMixed2(.dcmm) bytes into aDcMstringwith explicit strict or permissive (best_effort) options. - dcmm_
to_ dcmstring - Decodes in-memory
.dcmmbytes (DcMixed2or legacyDcMixed1) into aDcMstring. - dcmm_
to_ dcmstring_ with_ options - Decodes in-memory
.dcmmbytes (DcMixed2or legacyDcMixed1) into aDcMstringwith explicit strict or permissive (best_effort) options. - dcmstring_
to_ dcmm - Encodes a
DcMstringintoDcMixed2(.dcmm) bytes. - dcmstring_
to_ dcmm1 - Encodes a
DcMstringinto legacyDcMixed1(.dcmmv1, usingDcUtf) bytes. - dcmstring_
to_ dcmm2 - Encodes a
DcMstringintoDcMixed2(.dcmm) bytes. - validate_
and_ copy_ dcmm_ stream - Validates the 21-byte DcMM header from reader, then streams the verified
.dcmmstream to writer with strict validation. Returns the total bytes written. - validate_
and_ copy_ dcmm_ stream_ with_ options - Validates and copies a
.dcmmstream from reader to writer according to the specified validation options. - validate_
dcmst - Validates that
bytescontains validDcMixedformat data.
Type Aliases§
- DcMixed
Chunk - Type alias for
DcMixed. - DcMst
Slice - Slice alias for consistency.