Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-arraybuffer

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-arraybuffer

node-v0.12.0 > v8::ArrayBuffer handler

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-arraybuffer

node-v0.12.0 > v8::ArrayBuffer handler

Install

npm install node-arraybuffer --save

Usage

Add node-arraybuffer to your project binding.gyp

"include_dirs" : [
    "<!(node -e \"require('node-arraybuffer')\")"
]

And add #include header in source code

#include <ArrayBuffer.h>

Static Public Member Functions

ArrayBuffer* New(v8::Isolate *isolate = 0, void *ptr = 0, size_t length = 0, bool release = false)
ArrayBuffer* New(v8::Isolate *isolate, const char *ptr, int length = -1, bool release = false)
ArrayBuffer* New(v8::Isolate *isolate, const v8::Local<v8::ArrayBuffer> &arrayBuffer)
ArrayBuffer* New(v8::Isolate *isolate, const v8::Local<v8::Value> &arg)

Static Template Public Member Functions

ArrayBuffer* New(v8::Isolate *isolate, const T &content)
ArrayBuffer* New(v8::Isolate *isolate, const T &content, void *ptr, size_t length = 0)
ArrayBuffer* New(v8::Isolate *isolate, const T &content, const char *ptr, int length = -1)

Public Member Functions

v8::Local<v8::ArrayBuffer> ToArrayBuffer() const
v8::Local<v8::String> ToString() const
const char *ToUtf8() const
void *Data() const
size_t Length() const
size_t ByteLength() const

Public Template Member Functions

const T &Unwrap() const

Example

sample.cc sample.js

FAQs

Package last updated on 11 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc