TianoCore EDK2 master
Loading...
Searching...
No Matches
ScanMem16Wrapper.c
Go to the documentation of this file.
1
20#include "MemLibInternals.h"
21
43VOID *
44EFIAPI
46 IN CONST VOID *Buffer,
47 IN UINTN Length,
48 IN UINT16 Value
49 )
50{
51 if (Length == 0) {
52 return NULL;
53 }
54
55 ASSERT (Buffer != NULL);
56 ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
57 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
58 ASSERT ((Length & (sizeof (Value) - 1)) == 0);
59
60 return (VOID *)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);
61}
UINT64 UINTN
#define MAX_ADDRESS
CONST VOID *EFIAPI InternalMemScanMem16(IN CONST VOID *Buffer, IN UINTN Length, IN UINT16 Value)
VOID *EFIAPI ScanMem16(IN CONST VOID *Buffer, IN UINTN Length, IN UINT16 Value)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279