bytearray

0.1.3 • Public • Published

bytearray

a Node.JS module for Buffer processing exposes API similar to ByteArray of ActionScript

Install

Install the module with: npm install bytearray

var bytearray = require('bytearray');

Usage

  • bytearray.readBoolean(buf, [offset]):Boolean
  • bytearray.readInt(buf, [offset]):int
  • bytearray.readShort(buf, [offset]):int
  • bytearray.readUnsignedByte(buf, [offset]):uint
  • bytearray.readUnsignedInt(buf, [offset]):uint
  • bytearray.readUnsignedShort(buf, [offset]):uint
  • bytearray.readUTF(buf, [offset]):String
  • bytearray.readUTFByte(buf, [offset]s(length:uint):String
  • bytearray.writeBoolean(value:Boolean):void
  • bytearray.writeByte(value:int):void
  • bytearray.writeBytes(bytes:ByteArray, offset:uint = 0, length:uint = 0):void
  • bytearray.writeInt(value:int):void
  • bytearray.writeShort(value:int):void
  • bytearray.writeUnsignedInt(value:uint):void
  • bytearray.writeUTF(value:String):void

License

Copyright (c) 2013 yi Licensed under the MIT license.

/bytearray/

    Package Sidebar

    Install

    npm i bytearray

    Weekly Downloads

    25

    Version

    0.1.3

    License

    none

    Last publish

    Collaborators

    • yi