StringToBytes

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

References

Module

Core

Header

Runtime/Core/Public/Containers/UnrealString.h