#decoding #format #array #buffer #single #transcoding

astro-format

Astro Format is a library for transcoding between multiple arrays and a single buffer

10 releases (3 stable)

Uses new Rust 2021

1.2.0 Jan 1, 2023
1.1.0 Dec 8, 2022
1.0.0 Aug 17, 2022
0.8.0 May 1, 2022

#313 in Algorithms

Download history 50/week @ 2022-10-07 17/week @ 2022-10-14 33/week @ 2022-10-21 49/week @ 2022-10-28 87/week @ 2022-11-04 40/week @ 2022-11-11 48/week @ 2022-11-18 25/week @ 2022-11-25 44/week @ 2022-12-02 79/week @ 2022-12-09 11/week @ 2022-12-16 28/week @ 2022-12-23 37/week @ 2022-12-30 16/week @ 2023-01-06 3/week @ 2023-01-13 24/week @ 2023-01-20

84 downloads per month
Used in fewer than 7 crates

MIT license

6KB
114 lines

Astro Format

Astro Format is a library for transcoding between multiple arrays and a single buffer.

Author

Roy R. O. Okello

Email

Github

Twitter

Usage

Cargo.toml

[dependencies]
astro-format = "1.2.0"

Module.rs

use astro_format;

API

Encode

let initial_arrays: Vec<&[u8]> = Vec::new();

let encoded_buffer: Vec<u8> = astro_format::encode(&initial_arrays);

Decode

let decoded_arrays: Vec<&[u8]> = astro_format::decode(&encoded_buffer)?;

License

MIT

No runtime deps