Returns the section data of section with the given section name.
Returns the section data of the given section in the given segment in the image pointed to by the given mach header.
void main() { import core.sys.darwin.mach.getsect; import core.sys.darwin.crt_externs; auto mph = _NSGetMachExecuteHeader(); int size; assert(getsectiondata(mph, "__TEXT", "__text", &size)); assert(size > 0); }
the mach header to get the section data from
the name of the segment
the name of the section
this will be set to the size of the section or 0 if the section doesn't exist
a pointer to the section data or null if it doesn't exist
See Implementation
Returns the section data of section with the given section name.
Returns the section data of the given section in the given segment in the image pointed to by the given mach header.