![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Base64.h>
Public Member Functions | |
| template<typename CharType > | |
| uint32 | Encode (const uint8 *Source, uint32 Length, CharType *Dest, EBase64Mode Mode) |
| template<typename CharType > | |
| bool | Decode (const CharType *Source, uint32 Length, uint8 *Dest, EBase64Mode Mode) |
| template<typename CharType > | |
| uint32 | GetDecodedDataSize (const CharType *Source, uint32 Length) |
Class for encoding/decoding Base64 data (RFC 4648)
| bool FBase64::Decode | ( | const CharType * | Source, |
| uint32 | Length, | ||
| uint8 * | Dest, | ||
| EBase64Mode | Mode | ||
| ) |
|
static |
Decodes a Base64 string into a preallocated buffer
| Source | The Base64 encoded string |
| Length | Length of the Base64 encoded string |
| Dest | Buffer to receive the decoded data. Must be large enough to contain the entire output data (see GetDecodedDataSize()). Can point to the same buffer as Source |
| Mode | The mode to use for decoding. Default is EBase64Mode::Standard |
|
static |
Decodes a Base64 string into a FString
| Source | The Base64 encoded string |
| OutDest | Receives the decoded string data |
| Mode | The mode to use for decoding. Default is EBase64Mode::Standard |
|
static |
Decodes a Base64 string into an array of bytes
| Source | The Base64 encoded string |
| Dest | Array to receive the decoded data |
| Mode | The mode to use for decoding. Default is EBase64Mode::Standard |
|
static |
Encodes a FString into a Base64 string
| Source | The string data to convert |
| Mode | The mode to use for encoding. Default is EBase64Mode::Standard |
|
static |
Encodes a binary uint8 array into a Base64 string
| Source | The binary data to convert |
| Mode | The mode to use for encoding. Default is EBase64Mode::Standard |
| uint32 FBase64::Encode | ( | const uint8 * | Source, |
| uint32 | Length, | ||
| CharType * | Dest, | ||
| EBase64Mode | Mode | ||
| ) |
|
static |
Encodes the source into a Base64 string, storing it in a preallocated buffer.
| Source | The binary data to encode |
| Length | Length of the binary data to be encoded |
| Dest | Buffer to receive the encoded data. Must be large enough to contain the entire output data (see GetEncodedDataSize()). Can point to the same buffer as Source |
| Mode | The mode to use for encoding. Default is EBase64Mode::Standard |
|
static |
Encodes the source into a Base64 string
| Source | The binary data to encode |
| Length | Length of the binary data to be encoded |
| Mode | The mode to use for encoding. Default is EBase64Mode::Standard |
| uint32 FBase64::GetDecodedDataSize | ( | const CharType * | Source, |
| uint32 | Length | ||
| ) |
|
static |
Determine the decoded data size for the incoming base64 encoded string
| Source | The Base64 encoded string |
| Length | Length of the Base64 encoded string |
|
static |
Determine the decoded data size for the incoming base64 encoded string
| Source | The Base64 encoded string |
Get the encoded data size for the given number of bytes.
| NumBytes | The number of bytes of input |
Get the maximum decoded data size for the given number of input characters.
| Length | The number of input characters. |