Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/UnrealString.h |
| Include | #include "Containers/UnrealString.h" |
int32 StringToBytes
(
const FString & String,
uint8 * OutBytes,
int32 MaxBufferSize
)
Remarks
Convert FString of bytes into the byte array. The number of bytes copied
Parameters
| Name | 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 |