Crates.io | bbd-lib |
lib.rs | bbd-lib |
version | 0.2.0 |
source | src |
created_at | 2023-07-29 14:49:01.168038 |
updated_at | 2023-07-30 12:49:58.006937 |
description | Binary Braille Dump |
homepage | |
repository | https://github.com/qtfkwk/bbd |
max_upload_size | |
id | 929289 |
size | 29,411 |
Library for encoding and decoding data to/from binary representations using the Braille Patterns Unicode Block characters
See the documentation or the source for each function for doctest examples.
See also the bbd crate which provides a CLI utility.
use bbd_lib::*;
assert_eq!(encode(b"Hello\n", encode_nlbb, 0, 0), "⢄⠮⢦⢦⢾⢐");
assert_eq!(decode("⢄⠮⢦⢦⢾⢐", decode_nlbb), b"Hello\n");