summaryrefslogtreecommitdiff
path: root/src/node_buffer.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-11 14:26:41 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-11-18 16:47:37 -0800
commitd74c5060447c01044e4122d9bcda9482bda2a351 (patch)
treee47b9728a50758249750321b9bb3d5dab265fef3 /src/node_buffer.h
parentdcc547d798c11ed81f4617724a0120dad484d0ce (diff)
downloadandroid-node-v8-d74c5060447c01044e4122d9bcda9482bda2a351.tar.gz
android-node-v8-d74c5060447c01044e4122d9bcda9482bda2a351.tar.bz2
android-node-v8-d74c5060447c01044e4122d9bcda9482bda2a351.zip
Support encoding
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r--src/node_buffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h
index 909be452f7..efc982ecf7 100644
--- a/src/node_buffer.h
+++ b/src/node_buffer.h
@@ -25,7 +25,9 @@ class Buffer : public ObjectWrap {
typedef void (*free_callback)(char *data, void *hint);
// C++ API for constructing fast buffer
- static v8::Handle<v8::Object> New(v8::Handle<v8::String> string);
+ static v8::Handle<v8::Object> New(
+ v8::Handle<v8::String> string,
+ v8::Handle<v8::Value> encoding = v8::Handle<v8::Value>());
static void Initialize(v8::Handle<v8::Object> target);
static Buffer* New(size_t length); // public constructor