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 u8using thebcdencoding
- decode_direct 
- Translate a binary representation to a u8using thedirectencoding
- decode_nlbb 
- Translate a binary representation to u8using thenlbbencoding
- decode_nlbt 
- Translate a binary representation to u8using thenlbtencoding
- decode_nrbb 
- Translate a binary representation to u8using thenrbbencoding
- decode_nrbt 
- Translate a binary representation to u8using thenrbtencoding
- encode
- Encode bytes to binary representation using the given function with optional wrapping
- encode_bcd 
- Translate a u8to binary representation using thebcdencoding
- encode_direct 
- Translate a u8to binary representation using thedirectencoding
- encode_nlbb 
- Translate a u8to binary representation using thenlbbencoding
- encode_nlbt 
- Translate a u8to binary representation using thenlbtencoding
- encode_nrbb 
- Translate a u8to binary representation using thenrbbencoding
- encode_nrbt 
- Translate a u8to binary representation using thenrbtencoding