Future<int> getNextOffset() async { if (currentShape >= 0) { return await shxReader!.getOffsetInBytes(currentShape); } else { return recordEnd; } }