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
- Decode binary representation to bytes using the given function with optional wrapping
- decode_
bcd - Translate a binary representation to
u8
using thebcd
encoding - decode_
direct - Translate a binary representation to a
u8
using thedirect
encoding - decode_
nlbb - Translate a binary representation to
u8
using thenlbb
encoding - decode_
nlbt - Translate a binary representation to
u8
using thenlbt
encoding - decode_
nrbb - Translate a binary representation to
u8
using thenrbb
encoding - decode_
nrbt - Translate a binary representation to
u8
using thenrbt
encoding - encode
- Encode bytes to binary representation using the given function with optional wrapping
- encode_
bcd - Translate a
u8
to binary representation using thebcd
encoding - encode_
direct - Translate a
u8
to binary representation using thedirect
encoding - encode_
nlbb - Translate a
u8
to binary representation using thenlbb
encoding - encode_
nlbt - Translate a
u8
to binary representation using thenlbt
encoding - encode_
nrbb - Translate a
u8
to binary representation using thenrbb
encoding - encode_
nrbt - Translate a
u8
to binary representation using thenrbt
encoding