Expand description
Encode binary files to printable utf16.
See Base16384
and Base16384Utf8
for more details.
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");
Re-exports
pub use utf8::Base16384Utf8;
Modules
- Error types.
- UTF-8 encoding and decoding for Base16384.
- Utility functions for the crate.
Structs
- Base16384 encoding and decoding.