3 Copyright (c) 1999 - 2014, 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 FirmwareVolumeBufferLib.h
18 EFI Firmware Volume routines which work on a Fv image in buffers.
22 #ifndef FirmwareVolumeBuffer_h_INCLUDED
23 #define FirmwareVolumeBuffer_h_INCLUDED
25 #include "Common/UefiBaseTypes.h"
26 #include "Common/PiFirmwareFile.h"
27 #include "Common/PiFirmwareVolume.h"
36 FvBufAddFileWithExtend (
63 FvBufCompact3ByteSize (
77 IN OUT VOID
**DestinationFv
81 FvBufExpand3ByteSize (
87 IN EFI_FFS_FILE_HEADER
*Ffs
91 FvBufGetFfsHeaderSize (
92 IN EFI_FFS_FILE_HEADER
*Ffs
102 FvBufFindFileByName (
109 FvBufFindFileByType (
111 IN EFI_FV_FILETYPE Type
,
123 FvBufFindNextSection (
124 IN VOID
*SectionsStart
,
125 IN UINTN TotalSectionsSize
,
131 FvBufFindSectionByType (
138 FvBufGetFileRawData (
141 OUT UINTN
* RawDataSize
151 FvBufPackageFreeformRawFile (
152 IN EFI_GUID
* Filename
,
154 IN UINTN RawDataSize
,
165 FvBufUnifyBlockSizes (
175 #endif // #ifndef FirmwareVolumeBuffer_h_INCLUDED