getSymtab
Function parameters
Parameters
- self:*const Coff
Type definitions in this namespace
Types
- ImportHintNameEntry
- Every name ends with a NULL byte.
Error sets in this namespace
Error Sets
= 0x10b
Values
Source
Implementation
pub fn getSymtab(self: *const Coff) ?Symtab {
const coff_header = self.getCoffHeader();
if (coff_header.pointer_to_symbol_table == 0) return null;
const offset = coff_header.pointer_to_symbol_table;
const size = coff_header.number_of_symbols * Symbol.sizeOf();
return .{ .buffer = self.data[offset..][0..size] };
}