{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/nan/issues/434","labels_url":"https://api.github.com/repos/nodejs/nan/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/nan/issues/434/comments","events_url":"https://api.github.com/repos/nodejs/nan/issues/434/events","html_url":"https://github.com/nodejs/nan/issues/434","id":103799920,"number":434,"title":"Trouble using Nan::NewBuffer","user":{"login":"cstyan","id":3246492,"avatar_url":"https://avatars.githubusercontent.com/u/3246492?v=3","gravatar_id":"","url":"https://api.github.com/users/cstyan","html_url":"https://github.com/cstyan","followers_url":"https://api.github.com/users/cstyan/followers","following_url":"https://api.github.com/users/cstyan/following{/other_user}","gists_url":"https://api.github.com/users/cstyan/gists{/gist_id}","starred_url":"https://api.github.com/users/cstyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstyan/subscriptions","organizations_url":"https://api.github.com/users/cstyan/orgs","repos_url":"https://api.github.com/users/cstyan/repos","events_url":"https://api.github.com/users/cstyan/events{/privacy}","received_events_url":"https://api.github.com/users/cstyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-28T21:34:55Z","updated_at":"2015-08-28T21:34:55Z","closed_at":null,"body":"Hi, I apologize if this ends up being a duplicate or dumb issue, but I haven't been able to find the info. I'm looking for.\r\n\r\nI'm trying to create a binding for a C library, though I really only need one function from it.  The function I've written in my `.cc` file should return a node Buffer off the output from the C function,  however I can't seem to get `Nan::NewBuffer to work`.\r\n\r\nIn the `.cc` file I have:\r\n```\r\nunsigned int len;\r\nunsigned int len;\r\n......\r\nif (!RSA_sign(NID_sha1, token, node::Buffer::Length(args[1]), sig, &len, rsa)) {\r\n    Nan::ThrowTypeError(\"failed to sign token\");\r\n    return;\r\n}\r\nargs.GetReturnValue().Set(Nan::MaybeLocal<v8::Object> (Nan::NewBuffer((const char*)sig, len)));\r\n```\r\n\r\nnode-gyp erros on the `Nan::NewBuffer` call with:\r\n```\r\nCXX(target) Release/obj.target/binding/binding/binding.o\r\n../binding/binding.cc:63:58: error: no matching function for call to\r\n      'NewBuffer'\r\n  args.GetReturnValue().Set(Nan::MaybeLocal<v8::Object> (Nan::NewBuffer(...\r\n                                                         ^~~~~~~~~~~~~~\r\n```\r\nAlong with some other errors.\r\n\r\nAny help would be appreciated :smiley: "}}