10-01-2019, 05:14 AM
You need to write your own bytebuffer class. Basically it needs the operations already mentioned - append data to the end of the buffer, read from the beginning, rewind the read to the beginning again, and erase from the beginning. It's fairly simple to do this.