MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / GetFfsFileLength

Function GetFfsFileLength

BaseTools/Source/C/Common/FvLib.c:757–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757UINT32
758GetFfsFileLength (
759 EFI_FFS_FILE_HEADER *FfsHeader
760 )
761/*++
762
763Routine Description:
764
765 Get FFS file length including FFS header.
766
767Arguments:
768
769 FfsHeader Pointer to EFI_FFS_FILE_HEADER.
770
771Returns:
772
773 UINT32 Length of FFS file header.
774
775--*/
776{
777 if (FfsHeader == NULL) {
778 return 0;
779 }
780 if (FfsHeader->Attributes & FFS_ATTRIB_LARGE_FILE) {
781 return (UINT32) ((EFI_FFS_FILE_HEADER2 *)FfsHeader)->ExtendedSize;
782 } else {
783 return GetLength(FfsHeader->Size);
784 }
785}
786
787UINT32
788GetSectionFileLength (

Callers 7

AdjustInternalFfsPaddingFunction · 0.85
UpdateResetVectorFunction · 0.85
FfsRebaseFunction · 0.85
GetNextFileFunction · 0.85
GetSectionByTypeFunction · 0.85
VerifyFfsFileFunction · 0.85

Calls 1

GetLengthFunction · 0.85

Tested by

no test coverage detected