mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 23:24:49 -04:00
parent
e14547c497
commit
f9c35f77a6
41 changed files with 415 additions and 324 deletions
|
@ -29,6 +29,9 @@ UString visibleAsciiOrHex(UINT8* bytes, UINT32 length);
|
|||
// Returns unique name for tree item
|
||||
UString uniqueItemName(const UModelIndex & index);
|
||||
|
||||
// Makes the name usable as a file name
|
||||
void fixFileName(UString &name, bool replaceSpaces);
|
||||
|
||||
// Converts error code to UString
|
||||
UString errorCodeToUString(USTATUS errorCode);
|
||||
|
||||
|
@ -63,9 +66,9 @@ INTN findPattern(const UINT8 *pattern, const UINT8 *patternMask, UINTN patternSi
|
|||
// Safely dereferences misaligned pointers
|
||||
template <typename T>
|
||||
inline T readUnaligned(const T *v) {
|
||||
T tmp;
|
||||
memcpy(&tmp, v, sizeof(T));
|
||||
return tmp;
|
||||
T tmp;
|
||||
memcpy(&tmp, v, sizeof(T));
|
||||
return tmp;
|
||||
}
|
||||
|
||||
#endif // UTILITY_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue