Struct rustdds::serialization::CDRDeserializerAdapter [−][src]
pub struct CDRDeserializerAdapter<D> { /* fields omitted */ }
Expand description
This type adapts CdrDeserializer (which implements serde::Deserializer) to
work as a with_key::DeserializerAdapter
and
no_key::DeserializerAdapter
.
CdrDeserializer cannot directly implement the trait itself, because CdrDeserializer has the type parameter BO open, and the adapter needs to be bi-endian.
Trait Implementations
Which data representations can the DeserializerAdapter read? See RTPS specification Section 10 and Table 10.3 Read more
fn from_vec_bytes(
input_vec_bytes: &[Bytes],
encoding: RepresentationIdentifier
) -> Result<D, Error>
fn from_vec_bytes(
input_vec_bytes: &[Bytes],
encoding: RepresentationIdentifier
) -> Result<D, Error>
This method has a default implementation, but the default will make a copy of all the input data in memory and then call from_bytes() . Read more