TianoCore EDK2 master
Loading...
Searching...
No Matches
ScanMem8Wrapper.c
Go to the documentation of this file.
1
20#include "MemLibInternals.h"
21
41VOID *
42EFIAPI
44 IN CONST VOID *Buffer,
45 IN UINTN Length,
46 IN UINT8 Value
47 )
48{
49 if (Length == 0) {
50 return NULL;
51 }
52
53 ASSERT (Buffer != NULL);
54 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
55
56 return (VOID *)InternalMemScanMem8 (Buffer, Length, Value);
57}
58
80VOID *
81EFIAPI
83 IN CONST VOID *Buffer,
84 IN UINTN Length,
85 IN UINTN Value
86 )
87{
88 if (sizeof (UINTN) == sizeof (UINT64)) {
89 return ScanMem64 (Buffer, Length, (UINT64)Value);
90 } else {
91 return ScanMem32 (Buffer, Length, (UINT32)Value);
92 }
93}
UINT64 UINTN
#define MAX_ADDRESS
CONST VOID *EFIAPI InternalMemScanMem8(IN CONST VOID *Buffer, IN UINTN Length, IN UINT8 Value)
VOID *EFIAPI ScanMemN(IN CONST VOID *Buffer, IN UINTN Length, IN UINTN Value)
VOID *EFIAPI ScanMem8(IN CONST VOID *Buffer, IN UINTN Length, IN UINT8 Value)
VOID *EFIAPI ScanMem64(IN CONST VOID *Buffer, IN UINTN Length, IN UINT64 Value)
VOID *EFIAPI ScanMem32(IN CONST VOID *Buffer, IN UINTN Length, IN UINT32 Value)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279