HexToBytes

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

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

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