Mercurial > foo_out_sdl
view foosdk/sdk/pfc/base64.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
line wrap: on
line source
#pragma once namespace pfc { class string_base; void base64_encode(pfc::string_base & out, const void * in, t_size inSize); void base64_encode_append(pfc::string_base & out, const void * in, t_size inSize); void base64_encode_from_string( pfc::string_base & out, const char * in ); t_size base64_decode_estimate(const char * text); void base64_decode(const char * text, void * out); mem_block base64_decode(const char* text); template<typename t_buffer> void base64_decode_array(t_buffer & out, const char * text) { PFC_STATIC_ASSERT( sizeof(out[0]) == 1 ); out.set_size_discard( base64_decode_estimate(text) ); base64_decode(text, out.get_ptr()); } void base64_decode_to_string( pfc::string_base & out, const char * text ); }
