1 #ifndef ELFSIZECALCULATOR_H
2 #define ELFSIZECALCULATOR_H
33 static qint64 CalculateElfSizeInternal(
const QString& filePath);
40 static bool IsElfHeaderMagicValid(
const Elf64_Ehdr& header);
48 static qint64 CalculateElfSize64(
const Elf64_Ehdr& header, qint64 fileSize);
56 static qint64 CalculateElfSize32(
const Elf64_Ehdr& header, qint64 fileSize);
63 static void PrintError(
const QString& context,
const QString& error);
Definition: ElfSizeCalculator.h:16
static qint64 calculateElfSize(const QString &filePath)
Calculate the ELF size for the given file path.
Definition: ElfSizeCalculator.cpp:6