upgrade node and swig
This commit is contained in:
@@ -27,13 +27,9 @@
|
||||
|
||||
namespace node {
|
||||
|
||||
// TODO(addaleax): Remove this.
|
||||
NODE_DEPRECATED("use command-line flags",
|
||||
extern bool zero_fill_all_buffers);
|
||||
|
||||
namespace Buffer {
|
||||
|
||||
static const unsigned int kMaxLength = v8::TypedArray::kMaxLength;
|
||||
static const size_t kMaxLength = v8::Uint8Array::kMaxLength;
|
||||
|
||||
typedef void (*FreeCallback)(char* data, void* hint);
|
||||
|
||||
@@ -69,6 +65,12 @@ NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
|
||||
char* data,
|
||||
size_t len);
|
||||
|
||||
// Creates a Buffer instance over an existing ArrayBuffer.
|
||||
NODE_EXTERN v8::MaybeLocal<v8::Uint8Array> New(v8::Isolate* isolate,
|
||||
v8::Local<v8::ArrayBuffer> ab,
|
||||
size_t byte_offset,
|
||||
size_t length);
|
||||
|
||||
// This is verbose to be explicit with inline commenting
|
||||
static inline bool IsWithinBounds(size_t off, size_t len, size_t max) {
|
||||
// Asking to seek too far into the buffer
|
||||
|
||||
Reference in New Issue
Block a user