mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-29 22:45:16 -04:00
Rename readMisaligned to readUnaligned
This commit is contained in:
parent
f2cdf7dc3b
commit
5b26775463
5 changed files with 29 additions and 29 deletions
|
@ -56,7 +56,7 @@ INTN findPattern(const UINT8 *pattern, const UINT8 *patternMask, UINTN patternSi
|
|||
|
||||
// Safely dereferences misaligned pointers
|
||||
template <typename T>
|
||||
inline T readMisaligned(const T *v) {
|
||||
inline T readUnaligned(const T *v) {
|
||||
T tmp;
|
||||
memcpy(&tmp, v, sizeof(T));
|
||||
return tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue