Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically resize as needed #2

Open
hpx7 opened this issue Sep 15, 2021 · 0 comments
Open

Automatically resize as needed #2

hpx7 opened this issue Sep 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hpx7
Copy link

hpx7 commented Sep 15, 2021

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.

@Electroid Electroid added the enhancement New feature or request label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants