Parser class

Constructors

Parser(dynamic data, dynamic offset)

Properties

data ByteData
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
offset ↔ dynamic
getter/setter pair
relativeOffset int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseByte() → dynamic
parseByteList(int count) → dynamic
parseCard16() → dynamic
parseCard8() → dynamic
parseChar() → dynamic
parseClassDef() → dynamic
parseCoverage() → dynamic
parseF2Dot14() → dynamic
parseFeatureList() → dynamic
parseFeatureVariationsList() → dynamic
parseFixed() → dynamic
parseList(dynamic count, dynamic itemCallback) → dynamic
Parse a list of items. Record count is optional, if omitted it is read from the stream. itemCallback is one of the Parser methods.
parseList32(dynamic count, dynamic itemCallback) → dynamic
parseListOfLists(dynamic itemCallback) → dynamic
Parse a list of offsets to lists of 16-bit integers, or a list of offsets to lists of offsets to any kind of items. If itemCallback is not provided, a list of list of UShort is assumed. If provided, itemCallback is called on each item and must parse the item. See examples in tables/gsub.js
parseLongDateTime() → dynamic
parseLookupList(dynamic lookupTableParsers) → dynamic
parseOffset16() → dynamic
parseOffset16List(dynamic count) → dynamic
// Parsing lists and records ///////////////////////////////
parseOffset32() → dynamic
parsePointer(dynamic description) → dynamic
parsePointer32(dynamic description) → dynamic
parseRecordList(dynamic count, dynamic recordDescription) → dynamic
Parse a list of records. Record count is optional, if omitted it is read from the stream. Example of recordDescription: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort }
parseRecordList32(dynamic count, dynamic recordDescription) → dynamic
parseScriptList() → dynamic
// Complex tables parsing //////////////////////////////////
parseShort() → dynamic
parseShortList(int count) → dynamic
parseSID() → dynamic
parseString(int length) → dynamic
parseStruct(dynamic description) → dynamic
parseTag() → dynamic
parseULong() → dynamic
parseULongList(int? count) → dynamic
parseUShort() → dynamic
parseUShortList(int? count) → dynamic
parseValueRecord(dynamic valueFormat) Map<String, dynamic>?
Parse a GPOS valueRecord https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record valueFormat is optional, if omitted it is read from the stream.
parseValueRecordList() → dynamic
Parse a list of GPOS valueRecords https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record valueFormat and valueCount are read from the stream.
parseVersion(dynamic minorBase) → dynamic
skip(dynamic type, int? amount) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

byte Function
getter/setter pair
classDef Function
getter/setter pair
coverage Function
getter/setter pair
list Function
// Static methods ///////////////////////////////////
getter/setter pair
list32 Function
getter/setter pair
offset16 Function
getter/setter pair
offset32 Function
getter/setter pair
pointer Function
getter/setter pair
pointer32 Function
getter/setter pair
recordList Function
getter/setter pair
recordList32 Function
getter/setter pair
struct Function
getter/setter pair
tag Function
getter/setter pair
uLong Function
getter/setter pair
uLongList Function
getter/setter pair
uShort Function
getter/setter pair
uShortList Function
getter/setter pair