mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 23:59:48 -08:00
SymTab class: update get_symbols() type and add return-value comment
This commit is contained in:
@@ -637,7 +637,11 @@ class SymTab:
|
||||
if self.strings[i] == 0:
|
||||
return self.strings[offset:i].decode()
|
||||
|
||||
def get_symbols(self) -> Tuple[int, int, int, int, int, int]:
|
||||
def get_symbols(self) -> Iterator[Tuple[int, int, int, int, int, int]]:
|
||||
"""
|
||||
return a tuple: (name, value, size, info, other, shndx)
|
||||
for each symbol contained in the symbol table
|
||||
"""
|
||||
for symbol in self.symbols:
|
||||
yield symbol
|
||||
|
||||
|
||||
Reference in New Issue
Block a user