SeekTable constructor

SeekTable(
  1. bool isLast,
  2. Uint8List rawData,
  3. int dataLength
)

create SeekTable

Implementation

SeekTable(bool isLast, Uint8List rawData, int dataLength)
    : super(BlockType.SEEKTABLE, isLast, rawData, dataLength) {
  var pointNum = dataLength ~/ 18;
  for (var i = 0; i < pointNum; i++) {
    var sampleNumber = _reader.getInt(SeekPoint.SAMPLE_NUMBER_SIZE);
    var streamOffset = _reader.getInt(SeekPoint.STREAM_OFFSET_SIZE);
    var frameSamples = _reader.getInt(SeekPoint.FRAME_SAMPLES_SIZE);

    var point = SeekPoint(sampleNumber, streamOffset, frameSamples);

    points.add(point);
  }
}