bytebuf
bytebuf copied to clipboard
Automatically resize as needed
Instead of being a fixed length, it would be nice if I could initialize it without a length like new ByteBuf() or similar. Then, an internal buffer could grow over time as needed.
The design tradeoff of having an internal buffer vs extending DataView directly is probably that you would need some kind of toBuffer() method that would return a view only up until the current byteOffset.