Trait xxlib::types::IStruct

source ·
pub trait IStruct {
    fn write_to(&self, om: &ObjectManager, data: &mut Data) -> Result<()>;
    fn read_from(
        &mut self,
        om: &ObjectManager,
        data: &mut DataReader<'_>
    ) -> Result<()>; }
Expand description

常规结构类型序列化反序列化接口

Required Methods§

写入当前对象 到 BytesMut

从Bytes 装载当前对象

Implementors§