/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.c

  • 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
#include "BaseN.h"
 
3
 
 
4
#define S_BASE_16_LAST = 15
 
5
#define S_BASE_32_LAST = 31
 
6
#define S_BASE_64_LAST = 63
 
7
 
 
8
UNUSED
 
9
static const schar
 
10
S_BASE_16_ALPHABET[16] = {
 
11
  '0','1','2','3','4','5','6','7','8','9',
 
12
  
 
13
  'A','B','C','D','E','F'
 
14
};
 
15
 
 
16
UNUSED
 
17
static const schar
 
18
S_BASE_32_HEX_ALPHABET[32] = {
 
19
  '0','1','2','3','4','5','6','7','8','9',
 
20
  
 
21
  'A','B','C','D','E','F','G','H','I','J',
 
22
  'K','L','M','N','O','P','Q','R','S','T',
 
23
  'U','V'
 
24
};
 
25
 
 
26
UNUSED
 
27
static const schar
 
28
S_BASE_32_ALPHABET[32] = {
 
29
  'A','B','C','D','E','F','G','H','I','J',
 
30
  'K','L','M','N','O','P','Q','R','S','T',
 
31
  'U','V','W','X','Y','Z',
 
32
  
 
33
  '2','3','4','5','6','7'
 
34
};
 
35
 
 
36
UNUSED
 
37
static const schar
 
38
S_BASE_64_ALPHABET[64] = {
 
39
  'A','B','C','D','E','F','G','H','I','J',
 
40
  'K','L','M','N','O','P','Q','R','S','T',
 
41
  'U','V','W','X','Y','Z',
 
42
  
 
43
  'a','b','c','d','e','f','g','h','i','j',
 
44
  'k','l','m','n','o','p','q','r','s','t',
 
45
  'u','v','w','x','y','z',
 
46
  
 
47
  '0','1','2','3','4','5','6','7','8','9',
 
48
  '+','/'
 
49
};
 
50
 
 
51
UNUSED
 
52
static const schar
 
53
S_BASE_64_SAFE_ALPHABET[64] = {
 
54
  'A','B','C','D','E','F','G','H','I','J',
 
55
  'K','L','M','N','O','P','Q','R','S','T',
 
56
  'U','V','W','X','Y','Z',
 
57
  
 
58
  'a','b','c','d','e','f','g','h','i','j',
 
59
  'k','l','m','n','o','p','q','r','s','t',
 
60
  'u','v','w','x','y','z',
 
61
  
 
62
  '0','1','2','3','4','5','6','7','8','9',
 
63
  '-','_'
 
64
};