]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/BaseMemoryLibInternal.h
3 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 BaseMemoryLibInternals.h
18 Header file for Base Memory Library.
22 #ifndef __BASEMEMORY_LIB_INTERNALS_H__
23 #define __BASEMEMORY_LIB_INTERNALS_H__
25 #include "EdkIIGlueBase.h"
27 Copy Length bytes from Source to Destination.
29 @param Destination Target of copy
30 @param Source Place to copy from
31 @param Length Number of bytes to copy
39 OUT VOID
*DestinationBuffer
,
40 IN CONST VOID
*SourceBuffer
,
45 Set Buffer to Value for Size bytes.
47 @param Buffer Memory to set.
48 @param Size Number of bytes to set
49 @param Value Value of the set operation.
63 Fills a target buffer with a 16-bit value, and returns the target buffer.
65 @param Buffer Pointer to the target buffer to fill.
66 @param Length Number of bytes in Buffer to fill.
67 @param Value Value with which to fill Length bytes of Buffer.
81 Fills a target buffer with a 32-bit value, and returns the target buffer.
83 @param Buffer Pointer to the target buffer to fill.
84 @param Length Number of bytes in Buffer to fill.
85 @param Value Value with which to fill Length bytes of Buffer.
99 Fills a target buffer with a 64-bit value, and returns the target buffer.
101 @param Buffer Pointer to the target buffer to fill.
102 @param Length Number of bytes in Buffer to fill.
103 @param Value Value with which to fill Length bytes of Buffer.
110 InternalMemSetMem64 (
117 Set Buffer to 0 for Size bytes.
119 @param Buffer Memory to set.
120 @param Size Number of bytes to set
133 Compares two memory buffers of a given length.
135 @param DestinationBuffer First memory buffer
136 @param SourceBuffer Second memory buffer
137 @param Length Length of DestinationBuffer and SourceBuffer memory
138 regions to compare. Must be non-zero.
140 @retval 0 if MemOne == MemTwo
145 InternalMemCompareMem (
146 IN CONST VOID
*DestinationBuffer
,
147 IN CONST VOID
*SourceBuffer
,
152 Scans a target buffer for an 8-bit value, and returns a pointer to the
153 matching 8-bit value in the target buffer.
155 @param Buffer Pointer to the target buffer to scan.
156 @param Length Number of bytes in Buffer to scan. Must be non-zero.
157 @param Value Value to search for in the target buffer.
159 @return Pointer to the first occurrence or NULL if not found.
164 InternalMemScanMem8 (
165 IN CONST VOID
*Buffer
,
171 Scans a target buffer for a 16-bit value, and returns a pointer to the
172 matching 16-bit value in the target buffer.
174 @param Buffer Pointer to the target buffer to scan.
175 @param Length Number of bytes in Buffer to scan. Must be non-zero.
176 @param Value Value to search for in the target buffer.
178 @return Pointer to the first occurrence or NULL if not found.
183 InternalMemScanMem16 (
184 IN CONST VOID
*Buffer
,
190 Scans a target buffer for a 32-bit value, and returns a pointer to the
191 matching 32-bit value in the target buffer.
193 @param Buffer Pointer to the target buffer to scan.
194 @param Length Number of bytes in Buffer to scan. Must be non-zero.
195 @param Value Value to search for in the target buffer.
197 @return Pointer to the first occurrence or NULL if not found.
202 InternalMemScanMem32 (
203 IN CONST VOID
*Buffer
,
209 Scans a target buffer for a 64-bit value, and returns a pointer to the
210 matching 64-bit value in the target buffer.
212 @param Buffer Pointer to the target buffer to scan.
213 @param Length Number of bytes in Buffer to scan. Must be non-zero.
214 @param Value Value to search for in the target buffer.
216 @return Pointer to the first occurrence or NULL if not found.
221 InternalMemScanMem64 (
222 IN CONST VOID
*Buffer
,