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.
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
DataViewdirectly is probably that you would need some kind oftoBuffer()method that would return a view only up until the currentbyteOffset.