Closed DennisOSRM closed 10 years ago
similar to #37
From Nan's README:
NanCString()
and NanRawString()
have been deprecated in favour of new NanAsciiString
, NanUtf8String
and NanUcs2String
. These classes manage the underlying memory for you in a safer way than just handing off an allocated array. You should now *NanAsciiString(handle)
to access the raw char data, you can also allocate on the heap if you need to keep a reference.