0.1.3 • Published 11 years ago
bytearray v0.1.3
bytearray
The best project ever.
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, offsets(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.