17 #if !defined(OPENNURBS_BASE64_INC_)
18 #define OPENNURBS_BASE64_INC_
58 ON_StreamCallbackFunction callback_function,
59 void* callback_context
105 ON__UINT64 in_buffer_size,
106 const void* in_buffer
138 void* callback_context,
139 ON__UINT32 out_buffer_size,
140 const char* out_buffer
196 ON_StreamCallbackFunction m_out_callback_function;
197 void* m_out_callback_context;
198 ON__UINT64 m_in_size;
199 ON__UINT64 m_out_size;
201 ON__UINT32 m_out_crc;
202 void* m_implementation;
235 const char*
Decode(
const char* base64str);
236 const char*
Decode(
const char* base64str, std::size_t base64str_count);
237 const wchar_t*
Decode(
const wchar_t* base64str);
238 const wchar_t*
Decode(
const wchar_t* base64str, std::size_t base64str_count);
261 unsigned char m_output[512];
282 void DecodeHelper1();
283 void DecodeHelper2();
bool SetCallback(ON_StreamCallbackFunction callback_function, void *callback_context)
virtual ~ON_Base64EncodeStream()
ON__UINT64 OutSize() const
ON__UINT32 OutCRC() const
void * CallbackContext() const
ON__UINT64 InSize() const
bool In(ON__UINT64 in_buffer_size, const void *in_buffer)
virtual bool Out(void *callback_context, ON__UINT32 out_buffer_size, const char *out_buffer)
ON_StreamCallbackFunction CallbackFunction() const
const char * Decode(const char *base64str)
virtual ~ON_DecodeBase64()
const wchar_t * Decode(const wchar_t *base64str)
const char * Decode(const char *base64str, std::size_t base64str_count)
unsigned int m_decode_count
const wchar_t * Decode(const wchar_t *base64str, std::size_t base64str_count)