The OpenD Programming Language

getsectbynamefromheaderwithswap

Returns the section with the given section name.

Returns the section structure of the given section in the given segment in image pointed to by the given mach header.

version(CoreDdoc)
extern (C) nothrow @nogc
const(section)*
getsectbynamefromheaderwithswap
(
const scope mach_header* mhp
,
const scope char* segname
,
const scope char* section
,
int fSwap
)

Parameters

mhp mach_header*

the mach header to get the section from

segname char*

the name of the segment

section char*

the name of the section

fSwap int

?

Return Value

Type: const(section)*

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

Meta