Crate bbd_lib

source ·
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 the bcd encoding
  • Translate a binary representation to a u8 using the direct encoding
  • Translate a binary representation to u8 using the nlbb encoding
  • Translate a binary representation to u8 using the nlbt encoding
  • Translate a binary representation to u8 using the nrbb encoding
  • Translate a binary representation to u8 using the nrbt encoding
  • Encode bytes to binary representation using the given function with optional wrapping
  • Translate a u8 to binary representation using the bcd encoding
  • Translate a u8 to binary representation using the direct encoding
  • Translate a u8 to binary representation using the nlbb encoding
  • Translate a u8 to binary representation using the nlbt encoding
  • Translate a u8 to binary representation using the nrbb encoding
  • Translate a u8 to binary representation using the nrbt encoding

Type Definitions