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

Go to the source code of this file.

Typedefs

typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_uint8_t MR_std_vector_uint8_t
 

Functions

MRC_API MR_std_stringMR_encode64 (const uint8_t *data, MR_uint64_t size)
 
MRC_API MR_std_vector_uint8_tMR_decode64 (const MR_std_string *val)
 

Typedef Documentation

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_uint8_t

Function Documentation

◆ MR_decode64()

MRC_API MR_std_vector_uint8_t * MR_decode64 ( const MR_std_string * val)

decodes Base64 format into binary data Generated from function MR::decode64. Parameter val can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_vector_uint8_t_Destroy() to free it when you're done using it.

◆ MR_encode64()

MRC_API MR_std_string * MR_encode64 ( const uint8_t * 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.