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.

  1. const(section)* getsectbynamefromheaderwithswap(const scope mach_header* mhp, const scope char* segname, const scope char* section, int fSwap)
    version(CoreDdoc)
    const(section)*
    getsectbynamefromheaderwithswap
    (
    const scope mach_header* mhp
    ,
    const scope char* segname
    ,
    const scope char* section
    ,
    int fSwap
    )
  2. const(section)* getsectbynamefromheaderwithswap_64(const scope mach_header_64* mhp, const scope char* segname, const scope char* section, int fSwap)

Parameters

mhp

the mach header to get the section from

segname
Type: char*

the name of the segment

section
Type: char*

the name of the section

fSwap
Type: int

?

Return Value

Type: const(section)*

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

Suggestion Box / Bug Report