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

Function DecodeWrite

nan.h:2515–2539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2513}
2514
2515inline ssize_t DecodeWrite(
2516 char *buf
2517 , size_t len
2518 , v8::Local<v8::Value> val
2519 , enum Encoding encoding = BINARY) {
2520#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
2521 return node::DecodeWrite(
2522 v8::Isolate::GetCurrent()
2523 , buf
2524 , len
2525 , val
2526 , static_cast<node::encoding>(encoding));
2527#else
2528# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
2529 if (encoding == BUFFER) {
2530 return node::DecodeWrite(buf, len, val, node::BINARY);
2531 }
2532# endif
2533 return node::DecodeWrite(
2534 buf
2535 , len
2536 , val
2537 , static_cast<node::encoding>(encoding));
2538#endif
2539}
2540
2541inline void SetPrototypeTemplate(
2542 v8::Local<v8::FunctionTemplate> templ

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected