diff options
Diffstat (limited to 'src/stream_base.h')
-rw-r--r-- | src/stream_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream_base.h b/src/stream_base.h index d5a759bd8d..4fe4a8c48c 100644 --- a/src/stream_base.h +++ b/src/stream_base.h @@ -247,6 +247,7 @@ class StreamResource { StreamListener* listener_ = nullptr; uint64_t bytes_read_ = 0; + uint64_t bytes_written_ = 0; friend class StreamListener; }; @@ -324,6 +325,9 @@ class StreamBase : public StreamResource { template <class Base> static void GetBytesRead(const v8::FunctionCallbackInfo<v8::Value>& args); + template <class Base> + static void GetBytesWritten(const v8::FunctionCallbackInfo<v8::Value>& args); + template <class Base, int (StreamBase::*Method)( const v8::FunctionCallbackInfo<v8::Value>& args)> |