HexToBytes

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/UnrealString.h"

Source

/Engine/Source/Runtime/Core/Private/Containers/String.cpp

Syntax

int32 HexToBytes
(
    const FString & HexString,
    uint8 * OutBytes
)

Remarks

Convert FString of Hex digits into the byte array.

Returns

The number of bytes copied

Parameters

Parameter

Description

HexString

The FString of Hex values

OutBytes

Ptr to memory must be preallocated large enough