Closed gra-m closed 2 years ago
fixing with GeneralUtil method that tests result against original byte array length:
dbFile.seek(rowsBytePosition + BOOLEAN_LENGTH_IN_BYTES + BOOLEAN_LENGTH_IN_BYTES + INTEGER_LENGTH_IN_BYTES); // 6 bytes boolean + int
data = new byte[recordLength];
int readLength = this.dbFile.read(data);
GeneralUtils.testInputStreamReadLength("@BFH/readRawRecord", readLength, recordLength);