memtab.parsers.size module¶
Size parser module for memtab.
This module provides parsing functionality for the output of the ‘size’ command, which lists section sizes and the total size of a binary file.
- class memtab.parsers.size.SizeParser(file, gcc_prefix, cache=False, cache_dir=None)¶
Bases:
MemtabGnuBinUtilsParserParser for the output of the ‘size’ command.
This class parses the output of the ‘size’ command to extract section sizes from binary files.
- command = 'size'¶
- get_total_size()¶
Get the total size of the binary.
- Return type:
int
- Returns:
The total size in bytes.
- parse_output_into_results()¶
Parse the size output and extract section sizes.
- Return type:
None