Skip to content

(Rust) Encode binary file to printable utf16be, and vice versa.

License

Notifications You must be signed in to change notification settings

Wybxc/base16384-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base16384

GitHub Workflow Status (with event) Crates.io docs.rs License

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");

About

(Rust) Encode binary file to printable utf16be, and vice versa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published