pub unsafe extern "C" fn dds_stream_normalize(
data: *mut c_void,
size: u32,
bswap: bool,
xcdr_version: dds_cdr_enc_version,
desc: *const dds_cdrstream_desc,
just_key: bool,
actual_size: *mut u32,
) -> dds_stream_normalize_resultExpand description
@brief Normalize and validate CDR data. @component cdr_serializer
@param data data sample @param size size of the data @param bswap byte-swapping required @param xcdr_version XCDR version of the CDR data @param desc type descriptor @param just_key indicates if the data is a serialized key or a complete sample @param actual_size is set to the actual size of the data (*actual_size <= size) on successful return, undefined on failure @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.