Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from\r
+ This function searches the target buffer specified by Buffer and Length from\r
the lowest address to the highest address at 128-bit increments for the 128-bit\r
GUID value that matches Guid. If a match is found, then a pointer to the matching\r
GUID in the target buffer is returned. If no match is found, then NULL is returned.\r
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 16-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 32-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a 64-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for an 8-bit value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
UINTN sized value in the target buffer.\r
\r
- This function searches target the buffer specified by Buffer and Length from the lowest\r
+ This function searches the target buffer specified by Buffer and Length from the lowest\r
address to the highest address for a UINTN sized value that matches Value. If a match is found,\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return ScanMem32 (Buffer, Length, (UINT32)Value);\r
}\r
\r
{\r
if (sizeof (UINTN) == sizeof (UINT64)) {\r
return SetMem64 (Buffer, Length, (UINT64)Value);\r
+ } else {\r
+ return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r
- return SetMem32 (Buffer, Length, (UINT32)Value);\r
}\r