code: protected long[] getSampleSizes(long startSample, long endSample, Track track, int sequenceNumber) {
          List<Sample> samples = getSamples(startSample, endSample, track);
  
          long[] sampleSizes = new long[samples.size()];
          for (int i = 0; i < sampleSizes.length; i++) {
              sampleSizes[i] = samples.get(i).getSize();
          }
          return sampleSizes;
      }
docs: Gets the sizes of a sequence of samples.
  
  @param startSample    low endpoint (inclusive) of the sample sequence
  @param endSample      high endpoint (exclusive) of the sample sequence
  @param track          source of the samples
  @param sequenceNumber the fragment index of the requested list of samples
  @return the sample sizes in the given interval