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

Class ExtString

test/cpp/morenews.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41static const char s[] = {'s', 't', 'r', 'i', 'n', 'g', '\0'};
42
43class ExtString : public v8::String::ExternalStringResource {
44 public:
45 ~ExtString() { }
46 const uint16_t *data() const { return ws; }
47 size_t length() const { return sizeof (ws) / sizeof (*ws) - 1; }
48};
49
50
51class ExtAsciiString : public ExternalOneByteStringResource {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected