Ringbuffer
Everytime a new frame is compiled, this function will get it
Current reading position
New data will be written to this position
Adds more binary data to unpack.
The data to add.
Checks whether new chunks can be found within the binary data.
This class unpacks Uint8Arrays and sends frames and time objects when gained enough data.
Credits: https://github.com/mdn/dom-examples/blob/master/streams/png-transform-stream/png-transform-stream.js