Expand description
Cross-format NUL-terminated string helpers.
PE import/export names, PE long section names (/offset into the COFF string table), and
Mach-O symtab / dylib cstring pools share the same on-disk encoding. This module centralizes
reading and exposes thin per-format wrappers.
Structs§
- CString
Pool - View of a Mach-O
LC_SYMTABstring pool.
Functions§
- macho_
dylib_ paths - Resolves every dylib path referenced by load commands (weak / re-export / lazy included).
- macho_
symtab_ string_ pool - Returns the Mach-O symtab cstring pool when
LC_SYMTABis present. - pe_
export_ names - Returns exported symbol names when an export directory is present.
- pe_
import_ strings - Collects DLL names and imported symbol names from the PE import directory.
- pe_
import_ strings_ from_ directory - Same as
pe_import_stringsbut reuses a parsedImportDirectory. - pe_
section_ name - Resolves a PE section name, including COFF long names (
/123→ string table offset). - read_
c_ string - Reads a NUL-terminated string at an absolute file offset.
- read_
c_ string_ in_ pool - Reads a string inside a cstring pool (
stroff..stroff + strsize).