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-10-11 06:08:51 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-10-11 06:08:51 +0400
commit0cf03ab8002795fed572bfaa31c51cced553bc2c (patch)
tree442e41f1c134f81289768f9d01af37044b8422ec /src/node_buffer.h
parentbc695475b908ccf30e5016689328df37b678b870 (diff)
Add char* constructor for Buffer
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r--src/node_buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h
index 18dda5201af..d191eb62e34 100644
--- a/src/node_buffer.h
+++ b/src/node_buffer.h
@@ -35,6 +35,7 @@ class Buffer : public ObjectWrap {
static void Initialize(v8::Handle<v8::Object> target);
static Buffer* New(size_t length); // public constructor
+ static Buffer* New(char *data, size_t len); // public constructor
static bool HasInstance(v8::Handle<v8::Value> val);
static char* Data(v8::Handle<v8::Object>);