diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-09-07 23:48:42 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-09-09 11:03:51 -0700 |
commit | 5bc4efe8207b21a5884f62597af2dc4ff564a8d7 (patch) | |
tree | afb55c122613ea19c619b46573645e32fd15e8a9 /src/node_buffer.h | |
parent | 380d12832c3ea333454f95425d560ecedccae079 (diff) | |
download | node-new-5bc4efe8207b21a5884f62597af2dc4ff564a8d7.tar.gz |
Remove blobs, simplify SlowBuffer
Implement SlowBuffer.prototype.slice in js
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r-- | src/node_buffer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h index f538f75099..b55b1d3ec2 100644 --- a/src/node_buffer.h +++ b/src/node_buffer.h @@ -41,7 +41,6 @@ class Buffer : public ObjectWrap { char* data(); size_t length() const { return length_; } - struct Blob_* blob() const { return blob_; } int AsciiWrite(char *string, int offset, int length); int Utf8Write(char *string, int offset, int length); @@ -67,9 +66,9 @@ class Buffer : public ObjectWrap { Buffer(size_t length); Buffer(Buffer *parent, size_t start, size_t end); - size_t off_; // offset inside blob_ - size_t length_; // length inside blob_ - struct Blob_ *blob_; + size_t off_; + size_t length_; + char* data_; }; |