boytacean-encoding 0.11.5

Codecs library for Boytacen.
Documentation
1
2
3
4
5
6
7
8
9
use boytacean_common::error::Error;

pub trait Codec {
    type EncodeOptions;
    type DecodeOptions;

    fn encode(data: &[u8], options: &Self::EncodeOptions) -> Result<Vec<u8>, Error>;
    fn decode(data: &[u8], options: &Self::DecodeOptions) -> Result<Vec<u8>, Error>;
}