getOffset method
Get the offset of the record (in 16-bit words).
@param index The index, from 0 to getRecordCount - 1 @return The offset in 16-bit words.
Implementation
Future<int> getOffset(int index) async {
int ret = -1;
if (afileReader != null) {
if (lastIndex != index) {
await readRecord(index);
}
ret = recOffset;
} else {
ret = content[2 * index];
}
return ret;
}