Expand description
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");
Functions
- Decode binary representation to bytes using the given function with optional wrapping
- Translate a binary representation to
u8
using thebcd
encoding - Translate a binary representation to a
u8
using thedirect
encoding - Translate a binary representation to
u8
using thenlbb
encoding - Translate a binary representation to
u8
using thenlbt
encoding - Translate a binary representation to
u8
using thenrbb
encoding - Translate a binary representation to
u8
using thenrbt
encoding - Encode bytes to binary representation using the given function with optional wrapping
- Translate a
u8
to binary representation using thebcd
encoding - Translate a
u8
to binary representation using thedirect
encoding - Translate a
u8
to binary representation using thenlbb
encoding - Translate a
u8
to binary representation using thenlbt
encoding - Translate a
u8
to binary representation using thenrbb
encoding - Translate a
u8
to binary representation using thenrbt
encoding