Can Cast do that?
int length = args[0]->Int32Value();
if (length <= 0) {
return ThrowException(Exception::Error(String::New("BAM")));
}
unsigned char* buffer = new unsigned char[length];
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
If you want some crazy v8 type conversion library, there is v8-juice:
Thats wonderful info Dan!! Many thanks!