Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
Assimp::Base64 Namespace Reference

Functions

size_t Decode (const char *in, size_t inLength, uint8_t *&out)
 Will decode the given character buffer from ASCII to UTF64. More...
 
std::vector< uint8_t > Decode (const std::string &in)
 Will decode the given character buffer from ASCII to UTF64. More...
 
size_t Decode (const std::string &in, std::vector< uint8_t > &out)
 Will decode the given character buffer from ASCII to UTF64. More...
 
std::string Encode (const std::vector< uint8_t > &in)
 Will encode the given character buffer from UTF64 to ASCII. More...
 
void Encode (const std::vector< uint8_t > &in, std::string &out)
 Will encode the given character buffer from UTF64 to ASCII. More...
 
void Encode (const uint8_t *in, size_t inLength, std::string &out)
 Will encode the given character buffer from UTF64 to ASCII. More...
 

Function Documentation

◆ Decode() [1/3]

size_t Assimp::Base64::Decode ( const char *  in,
size_t  inLength,
uint8_t *&  out 
)

Will decode the given character buffer from ASCII to UTF64.

Parameters
inThe ASCII buffer to decode.
inLengthThe size of the buffer.
outThe decoded buffer.
Returns
The new buffer size.

◆ Decode() [2/3]

std::vector< uint8_t > Assimp::Base64::Decode ( const std::string &  in)

Will decode the given character buffer from ASCII to UTF64.

Parameters
inThe ASCII string.
Returns
The decoded buffer in a vector.

◆ Decode() [3/3]

size_t Assimp::Base64::Decode ( const std::string &  in,
std::vector< uint8_t > &  out 
)

Will decode the given character buffer from ASCII to UTF64.

Parameters
inThe ASCII buffer to decode as a std::string.
outThe decoded buffer.
Returns
The new buffer size.

◆ Encode() [1/3]

std::string Assimp::Base64::Encode ( const std::vector< uint8_t > &  in)

Will encode the given character buffer from UTF64 to ASCII.

Parameters
inA vector, which contains the buffer for encoding.
Returns
The encoded ASCII string.

◆ Encode() [2/3]

void Assimp::Base64::Encode ( const std::vector< uint8_t > &  in,
std::string &  out 
)

Will encode the given character buffer from UTF64 to ASCII.

Parameters
inA vector, which contains the buffer for encoding.
outThe encoded ASCII string.

◆ Encode() [3/3]

void Assimp::Base64::Encode ( const uint8_t *  in,
size_t  inLength,
std::string &  out 
)

Will encode the given character buffer from UTF64 to ASCII.

Parameters
inThe UTF-64 buffer.
inLengthThe size of the buffer
outThe encoded ASCII string.