pub trait Decodable {
    // Required method
    fn decode<R: Read + Seek>(
        &mut self,
        reader: &mut BinaryReader<R>
    ) -> Result<()>;
}
Expand description

Trait for decoding from binary.

Required Methods§

source

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

Decode from the binary reader into self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Decodable for Option<T>
where T: Decodable + Default,

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

Implementors§