diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-09-03 14:36:17 +0400 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-09-03 14:36:17 +0400 |
commit | a054f8eb29561873f0ae678e579d99f690d3032d (patch) | |
tree | a57e623ddd2d8d7b50255dafa3ae78138a2866bb /src/stream_wrap.h | |
parent | 81a9739108bd3959b4b1331d3a2833a18bc2b2b4 (diff) |
stream_wrap: Add support to write binary strings
node::StringBytes::Write() has appropriate support to write strings with
'binary' encoding. So expose that API through StreamWrap and allow
inheriting classes to use it.
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r-- | src/stream_wrap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 3a7f6f86383..05b828ef8b8 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -125,6 +125,8 @@ class StreamWrap : public HandleWrap { static void WriteAsciiString(const v8::FunctionCallbackInfo<v8::Value>& args); static void WriteUtf8String(const v8::FunctionCallbackInfo<v8::Value>& args); static void WriteUcs2String(const v8::FunctionCallbackInfo<v8::Value>& args); + static void WriteBinaryString( + const v8::FunctionCallbackInfo<v8::Value>& args); static void SetBlocking(const v8::FunctionCallbackInfo<v8::Value>& args); |