pub struct Codec { /* private fields */ }Expand description
IOP::Codec: CDR encapsulations, with the native code sets (UTF-8
and UTF-16). Object references read from data belong to the ORB of the
factory.
Implementations§
Source§impl Codec
impl Codec
Sourcepub fn encode(&self, data: &Any) -> Result<Vec<u8>, CodecError>
pub fn encode(&self, data: &Any) -> Result<Vec<u8>, CodecError>
encode: the TypeCode and the value of data.
Sourcepub fn encode_value(&self, data: &Any) -> Result<Vec<u8>, CodecError>
pub fn encode_value(&self, data: &Any) -> Result<Vec<u8>, CodecError>
encode_value: the value of data only.
Sourcepub fn decode_value(
&self,
data: &[u8],
tc: &TypeCode,
) -> Result<Any, CodecError>
pub fn decode_value( &self, data: &[u8], tc: &TypeCode, ) -> Result<Any, CodecError>
decode_value: a value of type tc written by
encode_value.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Codec
impl !UnwindSafe for Codec
impl Freeze for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more