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

Function DecodeBytes

nan.h:2498–2513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2496#endif
2497
2498inline ssize_t DecodeBytes(
2499 v8::Local<v8::Value> val, enum Encoding encoding = BINARY) {
2500#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
2501 return node::DecodeBytes(
2502 v8::Isolate::GetCurrent()
2503 , val
2504 , static_cast<node::encoding>(encoding));
2505#else
2506# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
2507 if (encoding == BUFFER) {
2508 return node::DecodeBytes(val, node::BINARY);
2509 }
2510# endif
2511 return node::DecodeBytes(val, static_cast<node::encoding>(encoding));
2512#endif
2513}
2514
2515inline ssize_t DecodeWrite(
2516 char *buf

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected