ddl.omf.OMFReader



class OMFReader: ddl.DDLReader.DDLReader;
Reader implementation to ease OMF Parsing.

The OMFReader helps with some OMF specific behaviors, such as specalized string formats and special index fields. The reader also contains the current 'type' for the current record, which has certain implications for the getVWord and getVByte methods.

The class is abstract and is implemented directly via WordOMFREader and DWordOMFReader.

ubyte getType();
Returns:
the type of the reader as provided in the construtor.

class WordOMFReader: ddl.omf.OMFReader.OMFReader;
Subclass of OMFReader that provides the getVWord and getVByte methods as appropriate for word-oriented (even) OMF records.

this(void[] data, ubyte type);
Constructor

this(IBuffer buffer, ubyte type);
Constructor

this(IConduit conduit, ubyte type);
Constructor

OMFReader get(inout VWord x);
Returns:
the next word in the buffer/conduit

OMFReader get(inout VByte x);
Returns:
the next byte in the buffer/conduit

class DWordOMFReader: ddl.omf.OMFReader.OMFReader;
Subclass of OMFReader that provides the getVWord and getVByte methods as appropriate for dword-oriented (odd) OMF records.

this(IBuffer buffer, ubyte type);
Constructor

this(IConduit conduit, ubyte type);
Constructor

this(ubyte[] data, ubyte type);
Constructor

OMFReader get(inout VWord x);
Returns:
the next dword in the buffer/conduit

OMFReader get(inout VByte x);
Returns:
the next word in the buffer/conduit