pub trait SerializeBinary: Sized {
    fn parse_binary(i: &[u8]) -> IResult<&[u8], Self, NomCustomError<&[u8]>>;
    fn write_binary<WB: Write>(&self, writer: &mut WB) -> Result<()>;
}

Required Methods

Parse a struct of type Self from a binary buffer.

Writes a struct to a writable buffer.

Implementors