Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-12 01:26:41 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-19 03:47:37 +0300
commitd74c5060447c01044e4122d9bcda9482bda2a351 (patch)
treee47b9728a50758249750321b9bb3d5dab265fef3 /src/node_buffer.h
parentdcc547d798c11ed81f4617724a0120dad484d0ce (diff)
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 909be452f7f..efc982ecf7f 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