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

support for Buffer::Use #4

Closed
trevnorris opened this issue Jul 24, 2013 · 1 comment
Closed

support for Buffer::Use #4

trevnorris opened this issue Jul 24, 2013 · 1 comment

Comments

@trevnorris
Copy link
Collaborator

v0.11 added proper support for using the original char* by adding node::Buffer::Use().

The same effect can be accomplished pre-v0.11 by passing a callback to Buffer::New() and just freeing the data passed to the callback. For an example check out the use of SessionDataFree here: https://github.com/joyent/node/blob/v0.10/src/node_crypto.cc#L271-L294

@rvagg
Copy link
Member

rvagg commented Jul 28, 2013

this is NanBufferUse() right? closing.

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