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

Enum Encoding

nan_string_bytes.h:226–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224static Local<Value> Encode(const char* buf,
225 size_t buflen,
226 enum Encoding encoding) {
227 assert(buflen <= node::Buffer::kMaxLength);
228 if (!buflen && encoding != BUFFER)
229 return New("").ToLocalChecked();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected