MCPcopy Create free account
hub / github.com/nodejs/nan / ExtAsciiString

Class ExtAsciiString

test/cpp/morenews.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51class ExtAsciiString : public ExternalOneByteStringResource {
52 public:
53 ~ExtAsciiString() { }
54 const char *data() const { return s; }
55 size_t length() const { return sizeof (s) / sizeof (*s) - 1; }
56};
57
58NAN_METHOD(NewExternalStringResource) {
59 v8::Local<v8::String> ext = New(new ExtString()).ToLocalChecked();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected