]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibRepStr/ZeroMemWrapper.c
2 ZeroMem() implementation.
4 The following BaseMemoryLib instances contain the same copy of this file:
15 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
16 SPDX-License-Identifier: BSD-2-Clause-Patent
20 #include "MemLibInternals.h"
23 Fills a target buffer with zeros, and returns the target buffer.
25 This function fills Length bytes of Buffer with zeros, and returns Buffer.
27 If Length > 0 and Buffer is NULL, then ASSERT().
28 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
30 @param Buffer The pointer to the target buffer to fill with zeros.
31 @param Length The number of bytes in Buffer to fill with zeros.
47 ASSERT (Buffer
!= NULL
);
48 ASSERT (Length
<= (MAX_ADDRESS
- (UINTN
)Buffer
+ 1));
49 return InternalMemZeroMem (Buffer
, Length
);