| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,6 +30,12 @@ struct Blob_; | |||
| 30 | 30 | ||
| 31 | 31 | class Buffer : public ObjectWrap { | |
| 32 | 32 | public: | |
| 33 | + static v8::Persistent<v8::FunctionTemplate> constructor_template; | ||
| 34 | + | ||
| 35 | + Buffer(size_t length); | ||
| 36 | + Buffer(Buffer *parent, size_t start, size_t end); | ||
| 37 | + ~Buffer(); | ||
| 38 | + | ||
| 33 | 39 | static void Initialize(v8::Handle<v8::Object> target); | |
| 34 | 40 | static inline bool HasInstance(v8::Handle<v8::Value> val) { | |
| 35 | 41 | if (!val->IsObject()) return false; | |
@@ -42,7 +48,6 @@ class Buffer : public ObjectWrap { | |||
| 42 | 48 | struct Blob_* blob() const { return blob_; } | |
| 43 | 49 | ||
| 44 | 50 | protected: | |
| 45 | - static v8::Persistent<v8::FunctionTemplate> constructor_template; | ||
| 46 | 51 | static v8::Handle<v8::Value> New(const v8::Arguments &args); | |
| 47 | 52 | static v8::Handle<v8::Value> Slice(const v8::Arguments &args); | |
| 48 | 53 | static v8::Handle<v8::Value> BinarySlice(const v8::Arguments &args); | |
@@ -59,10 +64,6 @@ class Buffer : public ObjectWrap { | |||
| 59 | 64 | int Utf8Write(char *string, int offset, int length); | |
| 60 | 65 | ||
| 61 | 66 | private: | |
| 62 | - Buffer(size_t length); | ||
| 63 | - Buffer(Buffer *parent, size_t start, size_t end); | ||
| 64 | - ~Buffer(); | ||
| 65 | - | ||
| 66 | 67 | size_t off_; // offset inside blob_ | |
| 67 | 68 | size_t length_; // length inside blob_ | |
| 68 | 69 | struct Blob_ *blob_; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments