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

Function IsVtfFile

BaseTools/Source/C/GenFv/GenFvInternalLib.c:731–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731BOOLEAN
732IsVtfFile (
733 IN EFI_FFS_FILE_HEADER *FileBuffer
734 )
735/*++
736
737Routine Description:
738
739 This function checks the header to validate if it is a VTF file
740
741Arguments:
742
743 FileBuffer Buffer in which content of a file has been read.
744
745Returns:
746
747 TRUE If this is a VTF file
748 FALSE If this is not a VTF file
749
750--*/
751{
752 if (!memcmp (&FileBuffer->Name, &mEfiFirmwareVolumeTopFileGuid, sizeof (EFI_GUID))) {
753 return TRUE;
754 } else {
755 return FALSE;
756 }
757}
758
759EFI_STATUS
760WriteMapFile (

Callers 2

AddFileFunction · 0.85
CalculateFvSizeFunction · 0.85

Calls 1

memcmpFunction · 0.85

Tested by

no test coverage detected