/* Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value in the target buffer. */
CONST VOID* EFIAPI InternalMemScanMem8(IN CONST VOID *Buffer, IN UINTN Length, IN UINT8 Value)
/* Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value in the target buffer. */
CONST VOID* EFIAPI InternalMemScanMem8(IN CONST VOID *Buffer, IN UINTN Length, IN UINT8 Value)
{
  CONST UINT8  *Pointer;
  Pointer = (CONST UINT8 *)Buffer;
  do {
    if (*Pointer == Value) {
      return Pointer;
    }
    ++Pointer;
  } while (--Length != 0);
  return NULL;
}