Private
bufferReturns the total number of frames in the buffer.
Adds a buffer range to the buffer. If the new range overlaps with an existing range, the two ranges are merged. Time complexity: O(nlogn)
Removes the interval that's present in buffers and returns the remaining interval;
buffers = [[1,100], [200,300]]
input range: [5, 105]
output: [101-105]
Generated using TypeDoc
Manages buffer ranges. Ranges are assumed to be inclusive, i.e. [start, end]