MeshLib C Docs
Loading...
Searching...
No Matches
MRBase64.h File Reference
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>

Go to the source code of this file.

Typedefs

typedef struct MR_std_vector_unsigned_char MR_std_vector_unsigned_char

Functions

MRC_API MR_std_stringMR_encode64 (const unsigned char *data, MR_uint64_t size)
MRC_API MR_std_vector_unsigned_charMR_decode64 (const char *val, const char *val_end)

Typedef Documentation

◆ MR_std_vector_unsigned_char

Generated from C++ container std::vector<unsigned char>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_decode64()

MRC_API MR_std_vector_unsigned_char * MR_decode64 ( const char * val,
const char * val_end )

decodes Base64 format into binary data Generated from function MR::decode64. Parameter val can not be null. If val_end is null, then val is assumed to be null-terminated. Never returns null. Returns an instance allocated on the heap! Must call MR_std_vector_unsigned_char_Destroy() to free it when you're done using it.

◆ MR_encode64()

MRC_API MR_std_string * MR_encode64 ( const unsigned char * data,
MR_uint64_t size )

encodes binary data into textual Base64 format Generated from function MR::encode64. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.