THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- Module Name: BaseMemoryLib.h\r
-\r
**/\r
\r
#ifndef __BASE_MEMORY_LIB__\r
This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
DestinationBuffer. The implementation must be reentrant, and it must handle the case\r
where SourceBuffer overlaps DestinationBuffer.\r
- If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
- If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
+ If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
\r
@param DestinationBuffer Pointer to the destination buffer of the memory copy.\r
@param SourceBuffer Pointer to the source buffer of the memory copy.\r
Fills a target buffer with a byte value, and returns the target buffer.\r
\r
This function fills Length bytes of Buffer with Value, and returns Buffer.\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Memory to set.\r
@param Length Number of bytes to set.\r
\r
This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to fill with zeros.\r
@param Length Number of bytes in Buffer to fill with zeros.\r
mismatched byte in DestinationBuffer.\r
If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
- If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
+ If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
\r
@param DestinationBuffer Pointer to the destination buffer to compare.\r
@param SourceBuffer Pointer to the source buffer to compare.\r
then a pointer to the matching byte in the target buffer is returned. If no match is found,\r
then NULL is returned. If Length is 0, then NULL is returned.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to scan.\r
@param Length Number of bytes in Buffer to scan.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
If Length is not aligned on a 16-bit boundary, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to scan.\r
@param Length Number of bytes in Buffer to scan.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
If Length is not aligned on a 32-bit boundary, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to scan.\r
@param Length Number of bytes in Buffer to scan.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
If Length is not aligned on a 64-bit boundary, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to scan.\r
@param Length Number of bytes in Buffer to scan.\r
If Length > 0 and Buffer is NULL, then ASSERT().\r
If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
If Length is not aligned on a 128-bit boundary, then ASSERT().\r
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
\r
@param Buffer Pointer to the target buffer to scan.\r
@param Length Number of bytes in Buffer to scan.\r