summaryrefslogtreecommitdiff
path: root/src/stream_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_base.h')
-rw-r--r--src/stream_base.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stream_base.h b/src/stream_base.h
index 68c82d243f..1b486e61db 100644
--- a/src/stream_base.h
+++ b/src/stream_base.h
@@ -89,6 +89,17 @@ class WriteWrap: public ReqWrap<uv_write_t>,
static const size_t kAlignSize = 16;
+ WriteWrap(Environment* env,
+ v8::Local<v8::Object> obj,
+ StreamBase* wrap,
+ DoneCb cb)
+ : ReqWrap(env, obj, AsyncWrap::PROVIDER_WRITEWRAP),
+ StreamReq<WriteWrap>(cb),
+ wrap_(wrap),
+ storage_size_(0) {
+ Wrap(obj, this);
+ }
+
protected:
WriteWrap(Environment* env,
v8::Local<v8::Object> obj,