-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: missing support for ue 5.4 (fix #351)
support ue 5.4
- Loading branch information
1 parent
585b218
commit e32059c
Showing
5 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
// Copyright 2022, Cronos Labs. All Rights Reserved | ||
|
||
#include "Utlis.h" | ||
#include "Containers/UnrealString.h" | ||
|
||
FString UUtlis::ToHex(TArray<uint8> address) { | ||
FString UUtlis::ToHex(const TArray<uint8> &address) { | ||
return BytesToHex(address.GetData(), address.Num()); | ||
} | ||
|
||
std::array<std::uint8_t, 20> UUtlis::ToArray(TArray<uint8> address) { | ||
std::array<std::uint8_t, 20> UUtlis::ToArray(const TArray<uint8> &address) { | ||
std::array<std::uint8_t, 20> std_array{}; | ||
|
||
if (address.Num() == 20) { | ||
auto data_begin = address.GetData(); | ||
const uint8 *data_begin = address.GetData(); | ||
std::copy_n(data_begin, 20, std_array.begin()); | ||
} else { | ||
std_array.fill(0); | ||
} | ||
|
||
return std_array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters