getLengthForRecords method

int getLengthForRecords(
  1. int records
)

Returns the expected file size for the given number of records in the file */

Implementation

int getLengthForRecords(int records) {
  return headerLength + records * recordLength;
}