Package ghidra.app.util.bin.format.omf
Class OmfIteratedData
- java.lang.Object
 - 
- ghidra.app.util.bin.format.omf.OmfRecord
 - 
- ghidra.app.util.bin.format.omf.OmfIteratedData
 
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOmfIteratedData.DataBlock 
- 
Field Summary
Fields Modifier and Type Field Description static intMAX_ITERATED_FILL 
- 
Constructor Summary
Constructors Constructor Description OmfIteratedData(BinaryReader reader) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OmfData o)byte[]getByteArray(BinaryReader reader)Create a byte array holding the data represented by this object.longgetDataOffset()intgetLength()intgetSegmentIndex()booleanisAllZeroes()- 
Methods inherited from class ghidra.app.util.bin.format.omf.OmfRecord
calcCheckSum, getRecordLength, getRecordType, hasBigFields, readCheckSumByte, readIndex, readInt1Or2, readInt2Or4, readRecord, readRecordHeader, readString, validCheckSum 
 - 
 
 - 
 
- 
- 
Field Detail
- 
MAX_ITERATED_FILL
public static final int MAX_ITERATED_FILL
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
OmfIteratedData
public OmfIteratedData(BinaryReader reader) throws java.io.IOException
- Throws:
 java.io.IOException
 
 - 
 
- 
Method Detail
- 
getSegmentIndex
public int getSegmentIndex()
 
- 
getDataOffset
public long getDataOffset()
- Specified by:
 getDataOffsetin interfaceOmfData- Returns:
 - the starting offset, within the loaded image, of this data
 
 
- 
isAllZeroes
public boolean isAllZeroes()
- Specified by:
 isAllZeroesin interfaceOmfData- Returns:
 - true if this is a block entirely of zeroes
 
 
- 
getLength
public int getLength()
 
- 
getByteArray
public byte[] getByteArray(BinaryReader reader) throws java.io.IOException
Description copied from interface:OmfDataCreate a byte array holding the data represented by this object. The length of the byte array should exactly match the value returned by getLength()- Specified by:
 getByteArrayin interfaceOmfData- Parameters:
 reader- is for pulling bytes directly from the binary image- Returns:
 - allocated and filled byte array
 - Throws:
 java.io.IOException- for problems accessing data through the reader
 
 - 
 
 -