diff options
author | isaacs <i@izs.me> | 2013-05-01 15:40:13 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-14 13:51:42 -0700 |
commit | 69dac92c36b8e0981a2afd1fc8dd9483cba8aad5 (patch) | |
tree | a8d39c22760656a872c24426c64df54cdec36155 /src/stream_wrap.h | |
parent | 64fc34b27005229487faba1c43ffdfa08ca4f982 (diff) | |
download | node-new-69dac92c36b8e0981a2afd1fc8dd9483cba8aad5.tar.gz |
src: Use StringBytes in StreamWrap
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r-- | src/stream_wrap.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 77bd234a9d..5c122e58d7 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -25,17 +25,10 @@ #include "v8.h" #include "node.h" #include "handle_wrap.h" +#include "string_bytes.h" namespace node { - -enum WriteEncoding { - kAscii, - kUtf8, - kUcs2 -}; - - class StreamWrap : public HandleWrap { public: uv_stream_t* GetStream() { return stream_; } @@ -75,7 +68,7 @@ class StreamWrap : public HandleWrap { static void OnReadCommon(uv_stream_t* handle, ssize_t nread, uv_buf_t buf, uv_handle_type pending); - template <enum WriteEncoding encoding> + template <enum encoding encoding> static v8::Handle<v8::Value> WriteStringImpl(const v8::Arguments& args); size_t slab_offset_; |