GithubHelp home page GithubHelp logo

libabits's Introduction

Alphabits Library(libabits) - ASCII Variable Bitlength Encoder/Decoder

A header-only C++ library that represents different character encoded alphabets, that includes the following built-in alphabets:

  • Base2 1 bit/symbol
  • Base4 2 bits/symbol
  • Base8 3 bits/symbol
  • Base16 4 bits/symbol
  • Base32 5 bits/symbol
  • Base64 6 bits/symbol
  • _

Each base smaller than the largest Base64 is a subset of the Base64 character encoding. Specifically, the Base16 is not a hexamdecimal enumeration, i.e. 0-9,a-f. Base16 is the first 16 characters of the larger Base64 encoding library. The intent of the library is to store the Base64 (or smaller) encoding with the minimum amount of bits required using no compression. The data store for this implementation is std::vector.

Base64 Encoding Table

  0,'A'
  1,'B'
  2,'C'
  3,'D'
  4,'E'
  5,'F'
  6,'G'
  7,'H'
  8,'I'
  9,'J'
  10,'K'
  11,'L'
  12,'M'
  13,'N'
  14,'O' 
  15,'P'
  16,'Q'
  17,'R'
  18,'S'
  19,'T' 
  20,'U'
  21,'V'
  22,'W'
  23,'X'
  24,'Y'
  25,'Z'
  26,'a'
  27,'b'
  28,'c'
  29,'d' 
  30,'e'
  31,'f'
  32,'g'
  33,'h'
  34,'i'
  35,'j'
  36,'k'
  37,'l'
  38,'m'
  39,'n'
  40,'o'
  41,'p'
  42,'q'
  43,'r'
  44,'s'
  45,'t'
  46,'u'
  47,'v'
  48,'w'
  49,'x'
  50,'y'
  51,'z'
  52,'0'
  53,'1'
  54,'2'
  55,'3'
  56,'4'
  57,'5'
  58,'6'
  59,'7'
  60,'8'
  61,'9'
  62,'+'
  63,'/'

The library is contained within a single include file (this file) and is easily included in a project. Unit tests can be found in the src/tests folder and a full description of the library can be found in the README.md file in the project root directory.

libabits's People

Contributors

northerntechie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.