foobar2000 SDK  2015-08-03
base64.h
Go to the documentation of this file.
1 namespace pfc {
2  class string_base;
3  void base64_encode(pfc::string_base & out, const void * in, t_size inSize);
4  void base64_encode_append(pfc::string_base & out, const void * in, t_size inSize);
5  t_size base64_decode_estimate(const char * text);
6  void base64_decode(const char * text, void * out);
7 
8  template<typename t_buffer> void base64_decode_array(t_buffer & out, const char * text) {
9  PFC_STATIC_ASSERT( sizeof(out[0]) == 1 );
10  out.set_size_discard( base64_decode_estimate(text) );
11  base64_decode(text, out.get_ptr());
12  }
13 }
void base64_decode(const char *text, void *out)
Definition: base64.cpp:36
void base64_encode(pfc::string_base &out, const void *in, t_size inSize)
Definition: base64.cpp:74
void base64_decode_array(t_buffer &out, const char *text)
Definition: base64.h:8
size_t t_size
Definition: int_types.h:48
t_size base64_decode_estimate(const char *text)
Definition: base64.cpp:18
void base64_encode_append(pfc::string_base &out, const void *in, t_size inSize)
Definition: base64.cpp:77