/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/BaseN.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-10-01 10:46:50 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20151001104650-s6d8bphieu709ncs
* Started working on Threads
* Started working on Base[16,32,64] [en,de]coding functionality.
* added waring that suchar is not an unsigned char type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef __H_BASE_N__
 
3
#define __H_BASE_N__
 
4
 
 
5
#include "defs.h"
 
6
 
 
7
BEGIN_DECLS
 
8
 
 
9
/**
 
10
 * @file
 
11
 * @defgroup
 
12
 * @addtogroup
 
13
 * @{
 
14
 * https://tools.ietf.org/html/rfc4648
 
15
 */
 
16
 
 
17
/**
 
18
 * Encode a Byte array to a Base16 string.
 
19
 */
 
20
schar *
 
21
s_base_16_enc (sbyte * input_data);
 
22
 
 
23
/**
 
24
 * Decode a base16 encoded string into a Byte array.
 
25
 */
 
26
sbyte *
 
27
s_base_16_dec (schar * base16_str);
 
28
 
 
29
/**
 
30
 * Encode a Byte array to a Base16 string.
 
31
 */
 
32
schar *
 
33
s_base_32_enc (sbyte * input_data);
 
34
 
 
35
/**
 
36
 * Decode a base16 encoded string into a Byte array.
 
37
 */
 
38
sbyte *
 
39
s_base_32_dec (schar * base16_str);
 
40
 
 
41
/**
 
42
 * Encode a Byte array to a Base16 string.
 
43
 */
 
44
schar *
 
45
s_base_32_hex_enc (sbyte * input_data);
 
46
 
 
47
/**
 
48
 * Decode a base16 encoded string into a Byte array.
 
49
 */
 
50
sbyte *
 
51
s_base_32_hex_dec (schar * base16_str);
 
52
 
 
53
/**
 
54
 * Encode a Byte array to a Base16 string.
 
55
 */
 
56
schar *
 
57
s_base_64_enc (sbyte * input_data);
 
58
 
 
59
/**
 
60
 * Decode a base16 encoded string into a Byte array.
 
61
 */
 
62
sbyte *
 
63
s_base_64_dec (schar * base16_str);
 
64
 
 
65
/**
 
66
 * @}
 
67
 */
 
68
 
 
69
END_DECLS
 
70
 
 
71
#endif __H_BASE_N__