getSectionData
Function parameters
Parameters
- self:*const Coff
- sec:*align(1) const SectionHeader
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 getSectionData(self: *const Coff, sec: *align(1) const SectionHeader) []const u8 {
const offset = if (self.is_loaded) sec.virtual_address else sec.pointer_to_raw_data;
return self.data[offset..][0..sec.virtual_size];
}