6#ifndef DUNE_GRID_IO_FILE_VTK_B64ENC_HH
7#define DUNE_GRID_IO_FILE_VTK_B64ENC_HH
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 'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
28 'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
29 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'+',
'/'
48 txt[0] = s>0 ? t[0] : 0;
49 txt[1] = s>1 ? t[1] : 0;
50 txt[2] = s>2 ? t[2] : 0;
54 void put(
const char c)
62 const unsigned A = (
txt[0] & 0b1111'1100) >> 2;
63 const unsigned B = (
txt[0] & 0b0000'0011) << 4 | (
txt[1] & 0b1111'0000) >> 4;
64 const unsigned C = (
txt[1] & 0b0000'1111) << 2 | (
txt[2] & 0b1100'0000) >> 6;
65 const unsigned D =
txt[2] & 0b0011'1111;
Include standard header files.
Definition: agrid.hh:60
const char base64table[]
endoing table
Definition: b64enc.hh:23
struct representing the three byte text as well as the four 6 bit chunks
Definition: b64enc.hh:34
char txt[3]
Definition: b64enc.hh:37
unsigned char size_type
Definition: b64enc.hh:35
void write(char *t)
Definition: b64enc.hh:60
size_type size
Definition: b64enc.hh:36
int read(const char *t, size_type s)
Definition: b64enc.hh:45
void put(const char c)
Definition: b64enc.hh:54
void reset()
Definition: b64enc.hh:39