FBase64

Class for encoding/decoding Base64 data (RFC 4648)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Base64.h

Include

#include "Misc/Base64.h"

Syntax

struct FBase64

Remarks

Class for encoding/decoding Base64 data (RFC 4648)

Functions

Name Description

Public function Static

bool

 

Decode

(
    const FString& Source,
    FString& OutDest
)

Decodes a Base64 string into a FString

Public function Static

bool

 

Decode

(
    const FString& Source,
    TArray< uint8 >& Dest
)

Decodes a Base64 string into an array of bytes

Public function Static

bool

 

Decode

(
    const CharType* Source,
    uint32 Length,
    uint8* Dest
)

Decodes a Base64 string into a preallocated buffer

Public function Static

FString

 

Encode

(
    const FString& Source
)

Encodes a FString into a Base64 string

Public function Static

FString

 

Encode

(
    const TArray< uint8 >& Source
)

Encodes a binary uint8 array into a Base64 string

Public function Static

FString

 

Encode

(
    const uint8* Source,
    uint32 Length
)

Encodes the source into a Base64 string

Public function Static

uint32

 

Encode

(
    const uint8* Source,
    uint32 Length,
    CharType* Dest
)

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

Public function Static

uint32

 

GetDecodedDataSize

(
    const FString& Source
)

Determine the decoded data size for the incoming base64 encoded string

Public function Static

uint32

 

GetDecodedDataSize

(
    const CharType* Source,
    uint32 Length
)

Determine the decoded data size for the incoming base64 encoded string

Public function Static

constexpr ui...

 

GetEncodedDataSize

(
    uint32 NumBytes
)

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

Public function Static

constexpr ui...

 

GetMaxDecodedDataSize

(
    uint32 NumChars
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss