getSectionDataAlloc
Function parameters
Parameters
- self:*const Coff
- sec:*align(1) const SectionHeader
- allocator:mem.Allocator
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 getSectionDataAlloc(self: *const Coff, sec: *align(1) const SectionHeader, allocator: mem.Allocator) ![]u8 {
const section_data = self.getSectionData(sec);
return allocator.dupe(u8, section_data);
}