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

Should we include functions for Buffers? #10

Open
freeformflow opened this issue Sep 8, 2015 · 1 comment
Open

Should we include functions for Buffers? #10

freeformflow opened this issue Sep 8, 2015 · 1 comment
Milestone

Comments

@freeformflow
Copy link
Contributor

Should we include functions for buffers directly or should we augment the Fairmont-Helper's array interface to handle buffers? @dyoder, what is the difference between Node's Buffer and JavaScript's native ArrayBuffer?

@dyoder
Copy link
Member

dyoder commented Sep 9, 2015

Having helpers for Buffer is a great idea, but perhaps a low priority. Maybe open a ticket for it, but I think having better tutorials and examples is more important for the moment. I've rarely needed them in practice (otherwise, they'd exist) and they don't exist in other Swiss Army Knife libraries, AFAIK.

Also, as you point out, there's a question about whether ArrayBuffers may replace Buffer. There's quite a bit of overlap. Buffer is more complete and more flexible and also used within the Node API. OTOH, Node could potentially implement Buffer as a wrapper around ArrayBuffer. Or they may have already done that in 4.0, I don't know.

@dyoder dyoder modified the milestone: Review Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants