getsectdatafromFramework

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 given framework.

___ void main() { import core.sys.darwin.mach.getsect; int size; assert(getsectdatafromFramework("Foundation", "__TEXT", "__text", &size)); assert(size > 0); } ___

version(CoreDdoc)
char*
getsectdatafromFramework
(
const scope char* FrameworkName
,
const scope char* segname
,
const scope char* sectname
,)

Parameters

FrameworkName
Type: char*

the name of the framework to get the section data from

segname
Type: char*

the name of the segment

sectname
Type: char*

the name of the section

size
Type: c_ulong*

this will be set to the size of the section or 0 if the section doesn't exist

Return Value

Type: char*

a pointer to the section data or null if it doesn't exist

Suggestion Box / Bug Report