4 #ifndef DUNE_GRID_IO_FILE_VTK_B64ENC_HH 5 #define DUNE_GRID_IO_FILE_VTK_B64ENC_HH 23 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
24 'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z',
25 'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
26 'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
27 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'+',
'/' 36 int read(
const char* t, size_type s)
39 txt[2] = s>0 ? t[0] : 0;
40 txt[1] = s>1 ? t[1] : 0;
41 txt[0] = s>2 ? t[2] : 0;
44 void put(
const char c)
62 t[3] = size>2 ? base64table[A] :
'=';
63 t[2] = size>1 ? base64table[B] :
'=';
64 t[1] = size>0 ? base64table[C] :
'=';
65 t[0] = size>0 ? base64table[D] :
'=';
81 #endif // DUNE_GRID_IO_FILE_VTK_B64ENC_HH union representing the three byte text as well as the four 6 bit chunks
Definition: b64enc.hh:71
void put(const char c)
Definition: b64enc.hh:44
unsigned char size_type
Definition: b64enc.hh:54
void write(char *t)
Definition: b64enc.hh:60
b64data data
Definition: b64enc.hh:74
size_type size
Definition: b64enc.hh:34
const char base64table[]
endoing table
Definition: b64enc.hh:21
size_type size
Definition: b64enc.hh:55
unsigned char size_type
Definition: b64enc.hh:33
Include standard header files.
Definition: agrid.hh:59
b64txt txt
Definition: b64enc.hh:73
struct with three bytes of text
Definition: b64enc.hh:31
char txt[3]
Definition: b64enc.hh:35
int read(const char *t, size_type s)
Definition: b64enc.hh:36