Astro Format
Astro Format is a library for efficiently transcoding arrays into a single buffer and native rust types into strings.
Usage
Cargo.toml
[dependencies]
astro-format = "0.5.0"
Module.rs
astro_format::{string, arrays};
API
Array
let ars: Vec>;
let buf = arrays::encode(&ars);
let ars = arrays::decode(&buf)?;
String
let buf: Vec;
let enc = string::encode::bytes(&buf);
let dec = string::decode::as_bytes(&enc)?;
2022-04-10