22 #ifndef BASE64READER_H_
23 #define BASE64READER_H_
33 class Base64Reader :
public std::basic_streambuf<char, std::char_traits<char> >,
public std::istream
36 Base64Reader(std::istream &stream,
const size_t limit = 0,
const size_t buffer = 2048);
40 virtual std::char_traits<char>::int_type
underflow();
43 void set_b64(
char val);
45 std::istream &_stream;
48 std::vector<char> data_buf_;
53 uint8_t _base64_state;