| 2496 | #endif |
| 2497 | |
| 2498 | inline 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 | |
| 2515 | inline ssize_t DecodeWrite( |
| 2516 | char *buf |
nothing calls this directly
no outgoing calls
no test coverage detected