TianoCore EDK2 master
Loading...
Searching...
No Matches
MemLib.c File Reference
#include "MemLibInternals.h"

Go to the source code of this file.

Functions

VOID *EFIAPI InternalMemCopyMem (OUT VOID *Destination, IN CONST VOID *Source, IN UINTN Length)
 
VOID *EFIAPI InternalMemSetMem (OUT VOID *Buffer, IN UINTN Size, IN UINT8 Value)
 

Detailed Description

Base Memory Library functions implementation bases on Uefi Boot Service.

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MemLib.c.

Function Documentation

◆ InternalMemCopyMem()

VOID *EFIAPI InternalMemCopyMem ( OUT VOID *  Destination,
IN CONST VOID *  Source,
IN UINTN  Length 
)

Copies a source buffer to a destination buffer, and returns the destination buffer.

This function wraps the gBS->CopyMem().

Parameters
DestinationBufferThe pointer to the destination buffer of the memory copy.
SourceBufferThe pointer to the source buffer of the memory copy.
LengthThe number of bytes to copy from SourceBuffer to DestinationBuffer.
Returns
DestinationBuffer.

Definition at line 25 of file MemLib.c.

◆ InternalMemSetMem()

VOID *EFIAPI InternalMemSetMem ( OUT VOID *  Buffer,
IN UINTN  Size,
IN UINT8  Value 
)

Fills a target buffer with a byte value, and returns the target buffer.

This function wraps the gBS->SetMem().

Parameters
BufferMemory to set.
SizeThe number of bytes to set.
ValueValue of the set operation.
Returns
Buffer.

Definition at line 49 of file MemLib.c.