StringToBytes

Convert [FString](API\Runtime\Core\Containers\FString) of bytes into the byte array.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h

Include

#include "Containers/UnrealString.h"

Syntax

int32 StringToBytes
(
    const FString & String,
    uint8 * OutBytes,
    int32 MaxBufferSize
)

Remarks

Convert FString of bytes into the byte array.

Returns

The number of bytes copied

Parameters

Parameter

Description

String

The FString of byte values

OutBytes

Ptr to memory must be preallocated large enough

MaxBufferSize

Max buffer size of the OutBytes array, to prevent overflow

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