Package apple.struct
Class section
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.struct.section
-
public final class section extends org.moe.natj.c.StructObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddr()memory address of this sectionintalign()section alignment (power of 2)intflags()flags (section type and attributes)intnreloc()number of relocation entriesintoffset()file offset of this sectionintreloff()file offset of relocation entriesintreserved1()reserved (for offset or index)intreserved2()reserved (for count or sizeof)bytesectname(int field_idx)name of this sectionbytesegname(int field_idx)segment this section goes invoidsetAddr(int value)memory address of this sectionvoidsetAlign(int value)section alignment (power of 2)voidsetFlags(int value)flags (section type and attributes)voidsetNreloc(int value)number of relocation entriesvoidsetOffset(int value)file offset of this sectionvoidsetReloff(int value)file offset of relocation entriesvoidsetReserved1(int value)reserved (for offset or index)voidsetReserved2(int value)reserved (for count or sizeof)voidsetSectname(byte value, int field_idx)name of this sectionvoidsetSegname(byte value, int field_idx)segment this section goes invoidsetSize(int value)size in bytes of this sectionintsize()size in bytes of this section
-
-
-
Method Detail
-
sectname
public byte sectname(int field_idx)
name of this section
-
setSectname
public void setSectname(byte value, int field_idx)name of this section
-
segname
public byte segname(int field_idx)
segment this section goes in
-
setSegname
public void setSegname(byte value, int field_idx)segment this section goes in
-
addr
public int addr()
memory address of this section
-
setAddr
public void setAddr(int value)
memory address of this section
-
size
public int size()
size in bytes of this section
-
setSize
public void setSize(int value)
size in bytes of this section
-
offset
public int offset()
file offset of this section
-
setOffset
public void setOffset(int value)
file offset of this section
-
align
public int align()
section alignment (power of 2)
-
setAlign
public void setAlign(int value)
section alignment (power of 2)
-
reloff
public int reloff()
file offset of relocation entries
-
setReloff
public void setReloff(int value)
file offset of relocation entries
-
nreloc
public int nreloc()
number of relocation entries
-
setNreloc
public void setNreloc(int value)
number of relocation entries
-
flags
public int flags()
flags (section type and attributes)
-
setFlags
public void setFlags(int value)
flags (section type and attributes)
-
reserved1
public int reserved1()
reserved (for offset or index)
-
setReserved1
public void setReserved1(int value)
reserved (for offset or index)
-
reserved2
public int reserved2()
reserved (for count or sizeof)
-
setReserved2
public void setReserved2(int value)
reserved (for count or sizeof)
-
-