Package ghidra.app.util.bin.format.ne
Class Segment
java.lang.Object
ghidra.app.util.bin.format.ne.Segment
A class to represent a new-executable segment.
- 
Method SummaryModifier and TypeMethodDescriptionshortReturns the flag word of this segment.shortReturns the length of this segment.shortReturns the minimum allocation size of this segment.shortReturns the offset to the contents of this segment.intReturns the actual (shifted) offset to the contents.Returns an array of the relocations defined for this segment.intReturns segment ID.booleanReturns true if this segment has relocations.booleanis32bit()Returns true if the segment should operate in 32 bit mode.booleanisCode()Returns true if this is a code segment.booleanisData()Returns true if this is a data segment.booleanReturns true if this segment is discardable.booleanReturns true if this segment is execute-only.booleanisLoaded()Returns true if this segment is loaded.booleanReturns true if this segment is loader allocated.booleanReturns true if this segment is moveable.booleanReturns true if this segment is preloaded.booleanisPure()Returns true if this segment is pure.booleanReturns true if this segment is read-only.
- 
Method Details- 
getSegmentIDpublic int getSegmentID()Returns segment ID.- Returns:
- segment ID
 
- 
is32bitpublic boolean is32bit()Returns true if the segment should operate in 32 bit mode.- Returns:
- true if the segment should operate in 32 bit mode
 
- 
isCodepublic boolean isCode()Returns true if this is a code segment.- Returns:
- true if this is a code segment
 
- 
isDatapublic boolean isData()Returns true if this is a data segment.- Returns:
- true if this is a data segment
 
- 
hasRelocationpublic boolean hasRelocation()Returns true if this segment has relocations.- Returns:
- true if this segment has relocations
 
- 
isLoaderAllocatedpublic boolean isLoaderAllocated()Returns true if this segment is loader allocated.- Returns:
- true if this segment is loader allocated
 
- 
isLoadedpublic boolean isLoaded()Returns true if this segment is loaded.- Returns:
- true if this segment is loaded
 
- 
isMoveablepublic boolean isMoveable()Returns true if this segment is moveable.- Returns:
- true if this segment is moveable
 
- 
isPreloadpublic boolean isPreload()Returns true if this segment is preloaded.- Returns:
- true if this segment is preloaded
 
- 
isPurepublic boolean isPure()Returns true if this segment is pure.- Returns:
- true if this segment is pure
 
- 
isReadOnlypublic boolean isReadOnly()Returns true if this segment is read-only.- Returns:
- true if this segment is read-only
 
- 
isExecuteOnlypublic boolean isExecuteOnly()Returns true if this segment is execute-only.- Returns:
- true if this segment is execute-only
 
- 
isDiscardablepublic boolean isDiscardable()Returns true if this segment is discardable.- Returns:
- true if this segment is discardable
 
- 
getFlagwordpublic short getFlagword()Returns the flag word of this segment.- Returns:
- the flag word of this segment
 
- 
getLengthpublic short getLength()Returns the length of this segment.- Returns:
- the length of this segment
 
- 
getMinAllocSizepublic short getMinAllocSize()Returns the minimum allocation size of this segment.- Returns:
- the minimum allocation size of this segment
 
- 
getOffsetpublic short getOffset()Returns the offset to the contents of this segment. NOTE: This value needs to be shift aligned.- Returns:
- the offset to the contents of this segment
 
- 
getOffsetShiftAlignedpublic int getOffsetShiftAligned()Returns the actual (shifted) offset to the contents.- Returns:
- the actual (shifted) offset to the contents
 
- 
getRelocationsReturns an array of the relocations defined for this segment.- Returns:
- an array of the relocations defined for this segment
 
 
-