[][src]Trait jlib::base::xcodec::address_codec::XCodeI

pub trait XCodeI {
    fn encode(bytes: &mut Vec<u8>, arg: Box<dyn BaseDataI>) -> String;
fn decode(string: &String, opts: Box<dyn BaseDataI>) -> Option<Vec<u8>>;
fn encode_raw(bytes: &mut Vec<u8>) -> String;
fn decode_raw(string: String) -> Option<Vec<u8>>;
fn encode_checked(buffer: &mut Vec<u8>) -> String;
fn decode_checked(encoded: String) -> Option<Vec<u8>>;
fn encode_versioned(bytes: &mut Vec<u8>, arg: Box<dyn BaseDataI>) -> String;
fn decode_versioned(
        string: String,
        arg: Box<dyn BaseDataI>
    ) -> Option<Vec<u8>>;
fn decode_multi_versioned(
        encoded: &String,
        arg: Box<dyn BaseDataI>
    ) -> Option<Vec<u8>>;
fn verify_checksum(bytes: &Vec<u8>) -> bool; }

Required methods

fn encode(bytes: &mut Vec<u8>, arg: Box<dyn BaseDataI>) -> String

fn decode(string: &String, opts: Box<dyn BaseDataI>) -> Option<Vec<u8>>

fn encode_raw(bytes: &mut Vec<u8>) -> String

fn decode_raw(string: String) -> Option<Vec<u8>>

fn encode_checked(buffer: &mut Vec<u8>) -> String

fn decode_checked(encoded: String) -> Option<Vec<u8>>

fn encode_versioned(bytes: &mut Vec<u8>, arg: Box<dyn BaseDataI>) -> String

fn decode_versioned(string: String, arg: Box<dyn BaseDataI>) -> Option<Vec<u8>>

fn decode_multi_versioned(
    encoded: &String,
    arg: Box<dyn BaseDataI>
) -> Option<Vec<u8>>

fn verify_checksum(bytes: &Vec<u8>) -> bool

Loading content...

Implementors

impl XCodeI for CodecFactory[src]

Loading content...