20 lines
549 B
C
20 lines
549 B
C
#pragma once
|
|
|
|
// Encodes binary data to Base64 code
|
|
// Returns size of encoded data.
|
|
int Base64_Encode(const char* inData,
|
|
int dataLength,
|
|
char* outCode);
|
|
|
|
// Decodes Base64 code to binary data
|
|
// Returns size of decoded data.
|
|
int Base64_Decode(const char* inCode,
|
|
int codeLength,
|
|
char* outData);
|
|
|
|
// Returns maximum size of decoded data based on size of Base64 code.
|
|
int Base64_GetDataLength(int codeLength);
|
|
|
|
// Returns maximum length of Base64 code based on size of uncoded data.
|
|
int Base64_GetCodeLength(int dataLength);
|