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

iobuffer

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobuffer

Read and write binary data on ArrayBuffers

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

iobuffer

NPM version npm download

Read and write binary data in ArrayBuffers

Installation

$ npm install iobuffer

API

Buffer

InputBuffer and OutputBuffer both inherit from Buffer which defines the following interface:

setBigEndian() / setLittleEndian()

Set the endianess for multi-byte values (default is little endian).

skip(n)

Move the pointer forward by n bytes.

seek(offset)

Move the pointer at the given offset.

mark()

Store the current pointer offset.

reset()

Move the pointer back to the last offset stored by mark.

rewind()

Move the pointer back to offset 0.

InputBuffer

new InputBuffer(data)

data can be an ArrayBuffer or any Typed Array (including Node.js' Buffer from v4).

Methods

Each method returns the value and moves the pointer forward by the number of read bytes.

  • readInt8
  • readUint8
  • readInt16
  • readUint16
  • readInt32
  • readUint32
  • readFloat32
  • readFloat64

License

MIT

FAQs

Package last updated on 23 Sep 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