TianoCore EDK2 master
Loading...
Searching...
No Matches
SetMem16Wrapper.c
Go to the documentation of this file.
1
19#include "MemLibInternals.h"
20
40VOID *
41EFIAPI
43 OUT VOID *Buffer,
44 IN UINTN Length,
45 IN UINT16 Value
46 )
47{
48 if (Length == 0) {
49 return Buffer;
50 }
51
52 ASSERT (Buffer != NULL);
53 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
54 ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);
55 ASSERT ((Length & (sizeof (Value) - 1)) == 0);
56
57 return InternalMemSetMem16 (Buffer, Length / sizeof (Value), Value);
58}
UINT64 UINTN
#define MAX_ADDRESS
VOID *EFIAPI InternalMemSetMem16(OUT VOID *Buffer, IN UINTN Length, IN UINT16 Value)
Definition: MemLibGeneric.c:28
VOID *EFIAPI SetMem16(OUT VOID *Buffer, IN UINTN Length, IN UINT16 Value)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284