Remove old buffer api
This commit is contained in:
parent
f1391f33cd
commit
41c1563584
@ -37,17 +37,7 @@ class Buffer : public ObjectWrap {
|
|||||||
static char* Data(v8::Handle<v8::Object>);
|
static char* Data(v8::Handle<v8::Object>);
|
||||||
static size_t Length(v8::Handle<v8::Object>);
|
static size_t Length(v8::Handle<v8::Object>);
|
||||||
|
|
||||||
char* data() {
|
private:
|
||||||
assert(0 && "v0.3 API change: Use node::Buffer::Data().");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t length() const {
|
|
||||||
assert(0 && "v0.3 API change: Use node::Buffer::Length().");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
static v8::Persistent<v8::FunctionTemplate> constructor_template;
|
static v8::Persistent<v8::FunctionTemplate> constructor_template;
|
||||||
|
|
||||||
static v8::Handle<v8::Value> New(const v8::Arguments &args);
|
static v8::Handle<v8::Value> New(const v8::Arguments &args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user