tabOffset static method
Implementation
static int tabOffset(Uint8List data, tab, int foff) {
final numTables = TyprBin.readUshort(data, foff + 4);
int offset = foff + 12;
for (int i = 0; i < numTables; i++) {
final tag = TyprBin.readASCII(data, offset, 4);
offset += 4;
offset += 4;
final toffset = TyprBin.readUint(data, offset);
offset += 4;
offset += 4;
if (tag == tab) return toffset;
}
return 0;
}