mirror of https://github.com/acidanthera/audk.git
1. fix the wrong description, change "target the buffer" to "the target buffer"
2. fix ICC/GYGGCC build failure on ScanMemN() in X64 arch, it can not reach the last sentence when UINTN is equal to UINT64. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9530 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
14e436f9b0
commit
56385d4987
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ CompareGuid (
|
||||||
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
Scans a target buffer for a GUID, and returns a pointer to the matching GUID
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from
|
This function searches the target buffer specified by Buffer and Length from
|
||||||
the lowest address to the highest address at 128-bit increments for the 128-bit
|
the lowest address to the highest address at 128-bit increments for the 128-bit
|
||||||
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
GUID value that matches Guid. If a match is found, then a pointer to the matching
|
||||||
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
GUID in the target buffer is returned. If no match is found, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
address to the highest address for a 16-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
address to the highest address for a 32-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
address to the highest address for a 64-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
|
||||||
in the target buffer.
|
in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
address to the highest address for an 8-bit value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -65,7 +65,7 @@ ScanMem8 (
|
||||||
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
|
||||||
UINTN sized value in the target buffer.
|
UINTN sized value in the target buffer.
|
||||||
|
|
||||||
This function searches target the buffer specified by Buffer and Length from the lowest
|
This function searches the target buffer specified by Buffer and Length from the lowest
|
||||||
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
address to the highest address for a UINTN sized value that matches Value. If a match is found,
|
||||||
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
then a pointer to the matching byte in the target buffer is returned. If no match is found,
|
||||||
then NULL is returned. If Length is 0, then NULL is returned.
|
then NULL is returned. If Length is 0, then NULL is returned.
|
||||||
|
@ -92,7 +92,8 @@ ScanMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
return ScanMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return ScanMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ SetMemN (
|
||||||
{
|
{
|
||||||
if (sizeof (UINTN) == sizeof (UINT64)) {
|
if (sizeof (UINTN) == sizeof (UINT64)) {
|
||||||
return SetMem64 (Buffer, Length, (UINT64)Value);
|
return SetMem64 (Buffer, Length, (UINT64)Value);
|
||||||
|
} else {
|
||||||
|
return SetMem32 (Buffer, Length, (UINT32)Value);
|
||||||
}
|
}
|
||||||
return SetMem32 (Buffer, Length, (UINT32)Value);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue