Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
Base64 Conversion

Functions for encoding/decoding of strings in Base64 format. More...

Functions

SIMD_API void SimdBase64Decode (const uint8_t *src, size_t srcSize, uint8_t *dst, size_t *dstSize)
 Decode string from Base64. More...
 
SIMD_API void SimdBase64Encode (const uint8_t *src, size_t size, uint8_t *dst)
 Encode string to Base64. More...
 
SIMD_INLINE std::string Base64Decode (const std::string &src)
 Decode string to Base64. More...
 
SIMD_INLINE std::string Base64Encode (const std::string &src)
 Encode string to Base64. More...
 

Detailed Description

Functions for encoding/decoding of strings in Base64 format.

Function Documentation

◆ SimdBase64Decode()

void SimdBase64Decode ( const uint8_t *  src,
size_t  srcSize,
uint8_t *  dst,
size_t *  dstSize 
)

Decode string from Base64.

Note
This function has a C++ wrapper std::string Simd::Base64Decode(const std::string & src).
Parameters
[in]src- a pointer to Base64 encoded input string.
[in]srcSize- a length of input string.
[out]dst- a pointer to the output buffer with decoded string. The size of the buffer is must be at least srcSize / 4 * 3.
[out]dstSize- a pointer to the value with lenght of decoded string.

◆ SimdBase64Encode()

void SimdBase64Encode ( const uint8_t *  src,
size_t  size,
uint8_t *  dst 
)

Encode string to Base64.

Note
This function has a C++ wrapper std::string Simd::Base64Encode(const std::string & src).
Parameters
[in]src- a pointer to original string.
[in]size- a length of input string.
[out]dst- a pointer to the output buffer with Base64 encoded string. The size of the buffer is must be at least (size + 2) / 3 * 4.

◆ Base64Decode()

std::string Base64Decode ( const std::string &  src)

Decode string to Base64.

Note
This function is a C++ wrapper for function SimdBase64Decode.
Parameters
[in]src- an input Base64 encoded string.
Returns
the output decoded string.

◆ Base64Encode()

std::string Base64Encode ( const std::string &  src)

Encode string to Base64.

Note
This function is a C++ wrapper for function SimdBase64Encode.
Parameters
[in]src- an input original string.
Returns
the output Base64 encoded string.