Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
BytesToHex.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/ArrayView.h"
6#include "Containers/ContainersFwd.h"
7#include "Containers/StringFwd.h"
8#include "CoreTypes.h"
9
10namespace UE::String
11{
12
13/**
14 * Convert an array of bytes to a non-null-terminated string of hex digits.
15 *
16 * @param Bytes Array of bytes to convert.
17 * @param OutHex [out] Array of at least 2*Bytes.Len() output characters.
18 */
19void BytesToHex(TConstArrayView<uint8> Bytes, ANSICHAR* OutHex);
20void BytesToHex(TConstArrayView<uint8> Bytes, WIDECHAR* OutHex);
21void BytesToHex(TConstArrayView<uint8> Bytes, UTF8CHAR* OutHex);
22void BytesToHexLower(TConstArrayView<uint8> Bytes, ANSICHAR* OutHex);
23void BytesToHexLower(TConstArrayView<uint8> Bytes, WIDECHAR* OutHex);
24void BytesToHexLower(TConstArrayView<uint8> Bytes, UTF8CHAR* OutHex);
25
26/**
27 * Append an array of bytes to a string builder as hex digits.
28 *
29 * @param Bytes Array of bytes to convert.
30 * @param Builder Builder to append the converted string to.
31 */
32void BytesToHex(TConstArrayView<uint8> Bytes, FAnsiStringBuilderBase& Builder);
33void BytesToHex(TConstArrayView<uint8> Bytes, FWideStringBuilderBase& Builder);
34void BytesToHex(TConstArrayView<uint8> Bytes, FUtf8StringBuilderBase& Builder);
35void BytesToHexLower(TConstArrayView<uint8> Bytes, FAnsiStringBuilderBase& Builder);
36void BytesToHexLower(TConstArrayView<uint8> Bytes, FWideStringBuilderBase& Builder);
37void BytesToHexLower(TConstArrayView<uint8> Bytes, FUtf8StringBuilderBase& Builder);
38
39} // UE::String
void BytesToHex(TConstArrayView< uint8 > Bytes, UTF8CHAR *OutHex)
void BytesToHex(TConstArrayView< uint8 > Bytes, FAnsiStringBuilderBase &Builder)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, UTF8CHAR *OutHex)
void BytesToHex(TConstArrayView< uint8 > Bytes, WIDECHAR *OutHex)
void BytesToHex(TConstArrayView< uint8 > Bytes, ANSICHAR *OutHex)
void BytesToHex(TConstArrayView< uint8 > Bytes, FUtf8StringBuilderBase &Builder)
void BytesToHex(TConstArrayView< uint8 > Bytes, FWideStringBuilderBase &Builder)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, WIDECHAR *OutHex)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, FWideStringBuilderBase &Builder)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, ANSICHAR *OutHex)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, FUtf8StringBuilderBase &Builder)
void BytesToHexLower(TConstArrayView< uint8 > Bytes, FAnsiStringBuilderBase &Builder)
Definition Vector.h:40