base16384 0.1.0

Encode binary file to printable utf16be, and vice versa.
Documentation
  • Coverage
  • 100%
    28 out of 28 items documented17 out of 20 items with examples
  • Size
  • Source code size: 89.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Wybxc/base16384-rs
    3 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Wybxc

base16384

Encode binary file to printable utf16be, and vice versa.

It is a Rust reimplementation of base16384.

Examples

use base16384::Base16384;

let data = b"12345678";
let encoded = Base16384::encode(data);
let text = String::from_utf16(&encoded).unwrap();
assert_eq!(text, "婌焳廔萷尀㴁");
use base16384::Base16384;

let data = "婌焳廔萷尀㴁".encode_utf16().collect::<Vec<_>>();
let decoded = Base16384::decode(&data).unwrap();
assert_eq!(decoded, b"12345678");