Crates.io | bbd-lib |
lib.rs | bbd-lib |
version | 0.3.0 |
source | src |
created_at | 2023-07-29 14:49:01.168038 |
updated_at | 2024-10-24 20:34:37.222369 |
description | Binary Braille Dump |
homepage | |
repository | https://github.com/qtfkwk/bbd |
max_upload_size | |
id | 929289 |
size | 29,530 |
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");