BibleBook(BiblePlus bible, Uint8List data, int offset)

Create a BibleBook instance. Only called by a BiblePlus instance when loading its data

Source

BibleBook(BiblePlus bible, Uint8List data, int offset) {
  _bible = bible;
  int index = 0;
  _bookNum = Util.readShort(data, offset + index);
  index += 2;
  _bookIndex = Util.readShort(data, offset + index);
  index += 2;
  _totalBookRec = Util.readShort(data, offset + index);
  if (_bookIndex + _totalBookRec > bible.header.totalRecords) throw new Exception('Incorrect book record');
  index += 2;
  _simpleName = data.sublist(offset + index, offset + index + 8);
  index += 8;
  _complexName = data.sublist(offset + index, offset + index + 32);
}