bytearray

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

bytearray

The best project ever.

Install the module with: npm install bytearray

var bytearray = require('bytearray');
  • 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

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