Package ghidra.app.util.bin.format.omf
Class OmfRecord
java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
- Direct Known Subclasses:
OmfCommentRecord
,OmfEnumeratedData
,OmfExternalSymbol
,OmfFileHeader
,OmfFixupRecord
,OmfGroupRecord
,OmfIteratedData
,OmfLibraryRecord
,OmfLineNumberRecord
,OmfModuleEnd
,OmfNamesRecord
,OmfSegmentHeader
,OmfSymbolRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
protected int
protected byte
static final byte
static final byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
calcCheckSum
(BinaryReader reader) int
byte
boolean
void
readCheckSumByte
(BinaryReader reader) static int
readIndex
(BinaryReader reader) static int
readInt1Or2
(BinaryReader reader, boolean isBig) static int
readInt2Or4
(BinaryReader reader, boolean isBig) static OmfRecord
readRecord
(BinaryReader reader) void
readRecordHeader
(BinaryReader reader) static String
readString
(BinaryReader reader) Read the OMF string format, 1-byte length, followed by that many ascii charactersboolean
validCheckSum
(BinaryReader reader)
-
Field Details
-
THEADR
public static final byte THEADR- See Also:
-
LHEADR
public static final byte LHEADR- See Also:
-
COMENT
public static final byte COMENT- See Also:
-
MODEND
public static final byte MODEND- See Also:
-
EXTDEF
public static final byte EXTDEF- See Also:
-
PUBDEF
public static final byte PUBDEF- See Also:
-
LINNUM
public static final byte LINNUM- See Also:
-
LNAMES
public static final byte LNAMES- See Also:
-
SEGDEF
public static final byte SEGDEF- See Also:
-
GRPDEF
public static final byte GRPDEF- See Also:
-
FIXUPP
public static final byte FIXUPP- See Also:
-
LEDATA
public static final byte LEDATA- See Also:
-
LIDATA
public static final byte LIDATA- See Also:
-
COMDEF
public static final byte COMDEF- See Also:
-
LEXTDEF
public static final byte LEXTDEF- See Also:
-
LPUBDEF
public static final byte LPUBDEF- See Also:
-
LCOMDEF
public static final byte LCOMDEF- See Also:
-
recordType
protected byte recordType -
recordLength
protected int recordLength -
checkSum
protected byte checkSum
-
-
Constructor Details
-
OmfRecord
public OmfRecord()
-
-
Method Details
-
getRecordType
public byte getRecordType() -
getRecordLength
public int getRecordLength() -
readRecordHeader
- Throws:
IOException
-
readCheckSumByte
- Throws:
IOException
-
calcCheckSum
- Throws:
IOException
-
validCheckSum
- Throws:
IOException
-
hasBigFields
public boolean hasBigFields() -
readInt1Or2
- Throws:
IOException
-
readInt2Or4
- Throws:
IOException
-
readIndex
- Throws:
IOException
-
readRecord
- Throws:
IOException
OmfException
-
readString
Read the OMF string format, 1-byte length, followed by that many ascii characters- Parameters:
reader
-- Returns:
- Throws:
IOException
-