engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FBase64结构体 参考

Class for encoding/decoding Base64 data (RFC 4648) 更多...

#include <Base64.h>

静态 Public 成员函数

template<typename CharType >
static bool Decode (const CharType *Source, uint32 Length, uint8 *Dest)
 Decodes a Base64 string into a preallocated buffer 更多...
 
static bool Decode (const FString &Source, FString &OutDest)
 Decodes a Base64 string into a FString 更多...
 
static bool Decode (const FString &Source, TArray< uint8 > &Dest)
 Decodes a Base64 string into an array of bytes 更多...
 
static FString Encode (const FString &Source)
 Encodes a FString into a Base64 string 更多...
 
static FString Encode (const TArray< uint8 > &Source)
 Encodes a binary uint8 array into a Base64 string 更多...
 
static FString Encode (const uint8 *Source, uint32 Length)
 Encodes the source into a Base64 string 更多...
 
template<typename CharType >
static uint32 Encode (const uint8 *Source, uint32 Length, CharType *Dest)
 Encodes the source into a Base64 string, storing it in a preallocated buffer. 更多...
 
template<typename CharType >
static uint32 GetDecodedDataSize (const CharType *Source, uint32 Length)
 Determine the decoded data size for the incoming base64 encoded string 更多...
 
static uint32 GetDecodedDataSize (const FString &Source)
 Determine the decoded data size for the incoming base64 encoded string 更多...
 
static constexpr uint32 GetEncodedDataSize (uint32 NumBytes)
 Get the encoded data size for the given number of bytes. 更多...
 
static constexpr uint32 GetMaxDecodedDataSize (uint32 NumChars)
 Get the maximum decoded data size for the given number of input characters. 更多...
 

详细描述

Class for encoding/decoding Base64 data (RFC 4648)

成员函数说明

◆ Decode() [1/3]

template<typename CharType >
static bool FBase64::Decode ( const CharType *  Source,
uint32  Length,
uint8 *  Dest 
)
static

Decodes a Base64 string into a preallocated buffer

参数
SourceThe Base64 encoded string
LengthLength of the Base64 encoded string
DestBuffer to receive the decoded data
返回
true if the buffer was decoded, false if it was invalid.

◆ Decode() [2/3]

static bool FBase64::Decode ( const FString &  Source,
FString &  OutDest 
)
static

Decodes a Base64 string into a FString

参数
SourceThe Base64 encoded string
OutDestReceives the decoded string data

◆ Decode() [3/3]

static bool FBase64::Decode ( const FString &  Source,
TArray< uint8 > &  Dest 
)
static

Decodes a Base64 string into an array of bytes

参数
SourceThe Base64 encoded string
DestArray to receive the decoded data

◆ Encode() [1/4]

static FString FBase64::Encode ( const FString &  Source)
static

Encodes a FString into a Base64 string

参数
SourceThe string data to convert
返回
A string that encodes the binary data in a way that can be safely transmitted via various Internet protocols

◆ Encode() [2/4]

static FString FBase64::Encode ( const TArray< uint8 > &  Source)
static

Encodes a binary uint8 array into a Base64 string

参数
SourceThe binary data to convert
返回
A string that encodes the binary data in a way that can be safely transmitted via various Internet protocols

◆ Encode() [3/4]

static FString FBase64::Encode ( const uint8 *  Source,
uint32  Length 
)
static

Encodes the source into a Base64 string

参数
SourceThe binary data to encode
LengthLength of the binary data to be encoded
返回
Base64 encoded string containing the binary data.

◆ Encode() [4/4]

template<typename CharType >
static uint32 FBase64::Encode ( const uint8 *  Source,
uint32  Length,
CharType *  Dest 
)
static

Encodes the source into a Base64 string, storing it in a preallocated buffer.

参数
SourceThe binary data to encode
LengthLength of the binary data to be encoded
DestBuffer to receive the encoded data. Must be large enough to contain the entire output data (see GetEncodedDataSize()).
返回
The length of the encoded data

◆ GetDecodedDataSize() [1/2]

template<typename CharType >
static uint32 FBase64::GetDecodedDataSize ( const CharType *  Source,
uint32  Length 
)
static

Determine the decoded data size for the incoming base64 encoded string

参数
SourceThe Base64 encoded string
LengthLength of the Base64 encoded string
返回
The size in bytes of the decoded data

◆ GetDecodedDataSize() [2/2]

static uint32 FBase64::GetDecodedDataSize ( const FString &  Source)
static

Determine the decoded data size for the incoming base64 encoded string

参数
SourceThe Base64 encoded string
返回
The size in bytes of the decoded data

◆ GetEncodedDataSize()

static constexpr uint32 FBase64::GetEncodedDataSize ( uint32  NumBytes)
inlinestaticconstexpr

Get the encoded data size for the given number of bytes.

参数
NumBytesThe number of bytes of input
返回
The number of characters in the encoded data.

◆ GetMaxDecodedDataSize()

static constexpr uint32 FBase64::GetMaxDecodedDataSize ( uint32  NumChars)
inlinestaticconstexpr

Get the maximum decoded data size for the given number of input characters.

参数
LengthThe number of input characters.
返回
The maximum number of bytes that can be decoded from this input stream. The actual number of characters decoded may be less if the data contains padding characters. Call GetDecodedDataSize() with the input data to find the exact length.

该结构体的文档由以下文件生成: