1.3.1 • Published 11 months ago

bytearray-node-as3 v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

ByteArray Node

A Node.js implementation of the Actionscript 3 ByteArray based on this package : https://www.npmjs.com/package/bytearray-node

Installation

npm install bytearray-node-as3

Usage

import { ByteArray } from "bytearray-node-as3";

class Car {
  constructor(name, type) {
    this.name = name;
    this.type = type;
  }
}

const myClass = new ByteArray();

myClass.writeByte(100);
myClass.writeObject(new Car("Name", "Type"));

console.log(myClass.readByte());
console.log(myClass.readUTF());
console.log(myClass.readShort());
console.log(myClass.readObject());
1.3.1

11 months ago

1.3.0

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago