EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

MdePkg/Library/BaseMemoryLib/SetMem16Wrapper.c

Go to the documentation of this file.
00001 
00025 #include "MemLibInternals.h"
00026 
00046 VOID *
00047 EFIAPI
00048 SetMem16 (
00049   OUT VOID   *Buffer,
00050   IN UINTN   Length,
00051   IN UINT16  Value
00052   )
00053 {
00054   if (Length == 0) {
00055     return Buffer;
00056   }
00057 
00058   ASSERT (Buffer != NULL);
00059   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
00060   ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);
00061   ASSERT ((Length & (sizeof (Value) - 1)) == 0);
00062 
00063   return InternalMemSetMem16 (Buffer, Length / sizeof (Value), Value);
00064 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines