World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
+ Граф связей класса Base64:

Функции

int av_base64_decode (uint8_t *out, const char *in, int out_size)
 
char * av_base64_encode (char *out, int out_size, const uint8_t *in, int in_size)
 

Подробное описание

Функции

◆ av_base64_decode()

int av_base64_decode ( uint8_t out,
const char *  in,
int  out_size 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/base64.h>

Decode a base64-encoded string.

Аргументы
outbuffer for decoded data
innull-terminated input string
out_sizesize in bytes of the out buffer, must be at least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
Возвращает
number of bytes written, or a negative value in case of invalid input

◆ av_base64_encode()

char* av_base64_encode ( char *  out,
int  out_size,
const uint8_t in,
int  in_size 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/base64.h>

Encode data to base64 and null-terminate.

Аргументы
outbuffer for encoded data
out_sizesize in bytes of the out buffer (including the null terminator), must be at least AV_BASE64_SIZE(in_size)
ininput buffer containing the data to encode
in_sizesize in bytes of the in buffer
Возвращает
out or NULL in case of error