Skip to main content

Module cdr

Module cdr 

Source
Expand description

CDR encoder/decoder with alignment handling

Structs§

CdrReader
CDR reader for deserialization
CdrWriter
DHeaderMark
Opaque marker returned by CdrWriter::begin_dheader, passed back to CdrWriter::end_dheader. Under XCDR1 it carries nothing (the DHEADER calls are no-ops); under XCDR2 it holds the reserved DHEADER position.
DHeaderScope
Opaque scope returned by CdrReader::begin_dheader, passed back to CdrReader::end_dheader. Under XCDR1 it carries nothing (no-op); under XCDR2 it holds the absolute buffer offset of the delimited struct’s end.
LeSliceView
A borrowed, alignment-agnostic view over a CDR little-endian numeric sequence (RFC-0033 borrowed mode). Borrows the raw payload bytes zero-copy; decodes elements lazily on access, so the source buffer need not be T-aligned. Valid only for the borrow lifetime 'a (the subscription callback scope).

Enums§

EncodingVersion
CDR writer for serialization.

Traits§

LeDecode
A little-endian-decodable fixed-width numeric element of a borrowed sequence.