-
Notifications
You must be signed in to change notification settings - Fork 3
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
vs node Buffer #3
Comments
Thanks for your comments; yes it appears to be similar to Browserify's implementation, but the intent is different for this module. This module's use in the rest of the cryptocoinjs ecosystem is to standardize the input conversions to various functions (such that a function can just call Beyond that simple use-case with all defaults, the ability to convert between types if you want is useful, and I agree if you're familiar with Buffers there's other ways to do those conversions directly, but this allows for consistency among the project (i.e. even though Buffers do allow True most of the conversions between different types just use the Node Buffer API, but the one exception of getting an array of byte values out (rather than a Buffer) is valuable since native Node Buffers don't have the |
I think @sidazhang thoughts? |
I also think that the cryptocoinjs modules should standardize on using However, I think that
Array.apply(null, buff) |
Deprecated in favour of |
Yep, we can safely deprecate this I'd say. |
@jprichardson added notice in ac0f4e0 |
Could use a |
There's some similar projects to this that implement node's Buffer api. This means reasonably transparent interoperability with node and one less api to maintain.
This is the one browserify uses afaik https://github.com/feross/buffer
The text was updated successfully, but these errors were encountered: