diff options
author | Konstantin Käfer <github@kkaefer.com> | 2010-11-30 13:18:02 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-05-06 13:39:12 -0700 |
commit | 5e1b7cadb48aaf47978b7661a5ce58b0c4d21d27 (patch) | |
tree | 3f8dda10a18a331e827222347852e84f1ca9f992 /src/node_buffer.h | |
parent | 9812e31e8ba43be9c50d07f83cbf459427a5d877 (diff) | |
download | android-node-v8-5e1b7cadb48aaf47978b7661a5ce58b0c4d21d27.tar.gz android-node-v8-5e1b7cadb48aaf47978b7661a5ce58b0c4d21d27.tar.bz2 android-node-v8-5e1b7cadb48aaf47978b7661a5ce58b0c4d21d27.zip |
Add Buffer::fill method to do memset
Fixes #477.
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r-- | src/node_buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h index 91f93dc1d0..e6d47452e9 100644 --- a/src/node_buffer.h +++ b/src/node_buffer.h @@ -117,6 +117,7 @@ class Buffer : public ObjectWrap { static v8::Handle<v8::Value> Ucs2Write(const v8::Arguments &args); static v8::Handle<v8::Value> ByteLength(const v8::Arguments &args); static v8::Handle<v8::Value> MakeFastBuffer(const v8::Arguments &args); + static v8::Handle<v8::Value> Fill(const v8::Arguments &args); static v8::Handle<v8::Value> Copy(const v8::Arguments &args); Buffer(v8::Handle<v8::Object> wrapper, size_t length); |