Skip to main content

dds_stream_normalize_xcdr2_data

Function dds_stream_normalize_xcdr2_data 

Source
pub unsafe extern "C" fn dds_stream_normalize_xcdr2_data(
    data: *mut c_char,
    off: *mut u32,
    size: u32,
    bswap: bool,
    ops: *const u32,
) -> dds_stream_normalize_result
Expand description

@brief Normalize and validate an XCDR2 data fragment. @component cdr_serializer

Normalization starts at @p off and advances it past the normalized data on success. Byte swapping is applied in place when @p bswap is true.

@param data serialized XCDR2 payload buffer @param off offset at which to start normalizing, updated on success @param size size of @p data in bytes @param bswap byte-swapping required @param ops marshalling metadata for the data type @returns DDS_STREAM_NORMALIZE_SUCCESS when validation and normalization succeeded; DDS_STREAM_NORMALIZE_DISCARD when the sample is well-formed but must be discarded because try-construct handling rejects it; DDS_STREAM_NORMALIZE_ERROR when validation failed or normalization could not be completed.