-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
55 lines (45 loc) · 1.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
librcnb: RCNB Encoding/Decoding Routines
======================================
Overview:
--------
librcnb is a library of ANSI C routines for fast encoding/decoding data into
and from a rcnb-encoded format. C++ wrappers are included, as well as the
source code for standalone encoding and decoding executables.
References:
----------
* RCNB.js:
https://github.com/rcnbapp/RCNB.js
* RCNB.php, another implementation of the rcnb encoding:
https://github.com/rcnbapp/RCNB.php
Commandline Use:
---------------
There is an executable available, it is simply called rcnb.
It can encode and decode files, as instructed by the user.
To encode a file:
$ ./rcnb -e filea fileb
fileb will now be the rcnb-encoded version of filea.
To decode a file:
$ ./rcnb -d fileb filec
filec will now be identical to filea.
Programming:
-----------
Some C++ wrappers are provided as well, so you don't have to get your hands
dirty. Encoding from standard input to standard output is as simple as
#include <rcnb/encode.h>
#include <iostream>
int main()
{
rcnb::encoder E;
setlocale(LC_ALL, "");
E.encode(std::cin, std::wcout);
return 0;
}
Both standalone executables and a static library is provided in the package,
Example code:
------------
The 'examples' directory contains some simple example code, that demonstrates
how to use the interface of the library.
More information:
------------
Go to https://github.com/rcnbapp/librcnb/wiki to find out more information
about librcnb.