The OpenD Programming Language

core.sys.darwin.mach.getsect

D header file for mach-o/getsect.h.

Public Imports

core.sys.darwin.mach.loader
public import core.sys.darwin.mach.loader;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Members

Functions

get_edata
c_ulong get_edata()
get_end
c_ulong get_end()
get_etext
c_ulong get_etext()
getsectbyname
const(Section)* getsectbyname(char* segname, char* sectname)

Returns the section with the given section name.

getsectbynamefromheader
const(section)* getsectbynamefromheader(mach_header* mhp, char* segname, char* sectname)
getsectbynamefromheader_64
const(section_64)* getsectbynamefromheader_64(mach_header_64* mhp, char* segname, char* sectname)

Returns the section with the given section name.

getsectbynamefromheaderwithswap
const(section)* getsectbynamefromheaderwithswap(mach_header* mhp, char* segname, char* section, int fSwap)
getsectbynamefromheaderwithswap_64
const(section)* getsectbynamefromheaderwithswap_64(mach_header_64* mhp, char* segname, char* section, int fSwap)

Returns the section with the given section name.

getsectdata
char* getsectdata(char* segname, char* sectname, c_ulong* size)

Returns the section data of section with the given section name.

getsectdatafromFramework
char* getsectdatafromFramework(char* FrameworkName, char* segname, char* sectname, c_ulong* size)

Returns the section data of section with the given section name.

getsectdatafromheader
ubyte* getsectdatafromheader(mach_header* mhp, char* segname, char* sectname, c_ulong* size)
getsectdatafromheader_64
ubyte* getsectdatafromheader_64(mach_header_64* mhp, char* segname, char* sectname, c_ulong* size)

Returns the section data of section with the given section name.

getsectiondata
ubyte* getsectiondata(MachHeader* mhp, char* segname, char* sectname, c_ulong* size)

Returns the section data of section with the given section name.

getsegbyname
const(SegmentCommand)* getsegbyname(char* segname)

Returns the segment with the given segment name.

getsegmentdata
ubyte* getsegmentdata(MachHeader* mhp, char* segname, c_ulong* size)

Returns the segment data of segment with the given segment name.

Structs

MachHeader
struct MachHeader

In reality this will be core.sys.darwin.mach.loader.mach_header on 32-bit platforms and core.sys.darwin.mach.loader.mach_header_64 64-bit platforms.

Section
struct Section

In reality this will be core.sys.darwin.mach.loader.section on 32-bit platforms and core.sys.darwin.mach.loader.section_64 64-bit platforms.

SegmentCommand
struct SegmentCommand

In reality this will be core.sys.darwin.mach.loader.segment_command on 32-bit platforms and core.sys.darwin.mach.loader.segment_command_64 64-bit platforms.

Meta

Version

Initial created: Mar 16, 2010

Authors

Jacob Carlborg