Observed since 20 Oct, 21:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@01/xdata
Extended ActionScript3 ByteArray API for JavaScript

Extended ActionScript3 ByteArray API for JavaScript
Developed by Nidin Vinayakan
###NPM
npm install xdata
npm registry https://www.npmjs.com/package/xdata
###Usage
import {DataArray,ByteArray,BitArray} from "xdata/core"
import {LZMAHelper,ZLIBHelper} from "xdata/helpers"
import {LZMA, ZLIB} from "xdata/compression"
###Classes
###BitArray
constructor(buffer?:ArrayBuffer)
readBits(bits:number, bitBuffer:number = 0):number
writeBits(bits:number, value:number)
resetBitsPending()
static calculateMaxBits(signed:boolean, values:Array<number>):number
###ByteArray
constructor(buffer?:ArrayBuffer, offset:number = 0, length:number = 0)
readBoolean():boolean
/**
* Reads a Boolean value from the byte stream. A single byte is read,
* and true is returned if the byte is nonzero,
* false otherwise.
* @return Returns true if the byte is nonzero, false otherwise.
*/
readByte():number
/**
* Reads a signed byte from the byte stream.
* The returned value is in the range -128 to 127.
* @return An integer between -128 and 127.
*/
readBytes(_bytes:ByteArray = null, offset:number = 0, length:number = 0, createNewBuffer:boolean = false):ByteArray
/**
* Reads the number of data bytes, specified by the length parameter, from the byte stream.
* The bytes are read into the ByteArray object specified by the bytes parameter,
* and the bytes are written into the destination ByteArray starting at the _position specified by offset.
* @param bytes The ByteArray object to read data into.
* @param offset The offset (_position) in bytes at which the read data should be written.
* @param length The number of bytes to read. The default value of 0 causes all available data to be read.
*/
readDouble():number
/**
* Reads an IEEE 754 double-precision (64-bit) floating-point number from the byte stream.
* @return A double-precision (64-bit) floating-point number.
*/
readFloat():number
/**
* Reads an IEEE 754 single-precision (32-bit) floating-point number from the byte stream.
* @return A single-precision (32-bit) floating-point number.
*/
readInt():number
/**
* Reads a signed 32-bit integer from the byte stream.
*
* The returned value is in the range -2147483648 to 2147483647.
* @return A 32-bit signed integer between -2147483648 and 2147483647.
*/
readInt64():Int64
/**
* Reads a signed 64-bit integer from the byte stream.
*
* The returned value is in the range −(2^63) to 2^63 − 1
* @return A 64-bit signed integer between −(2^63) to 2^63 − 1
*/
readMultiByte(length:number, charSet?:string):string
/**
* Reads a multibyte string of specified length from the byte stream using the
* specified character set.
* @param length The number of bytes from the byte stream to read.
* @param charSet The string denoting the character set to use to interpret the bytes.
* Possible character set strings include "shift-jis", "cn-gb",
* "iso-8859-1", and others.
* For a complete list, see Supported Character Sets.
* Note: If the value for the charSet parameter
* is not recognized by the current system, the application uses the system's default
* code page as the character set. For example, a value for the charSet parameter,
* as in myTest.readMultiByte(22, "iso-8859-01") that uses 01 instead of
* 1 might work on your development system, but not on another system.
* On the other system, the application will use the system's default code page.
* @return UTF-8 encoded string.
*/
readShort():number
/**
* Reads a signed 16-bit integer from the byte stream.
*
* The returned value is in the range -32768 to 32767.
* @return A 16-bit signed integer between -32768 and 32767.
*/
readUnsignedByte():number
/**
* Reads an unsigned byte from the byte stream.
*
* The returned value is in the range 0 to 255.
* @return A 32-bit unsigned integer between 0 and 255.
*/
readUnsignedInt():number
/**
* Reads an unsigned 32-bit integer from the byte stream.
*
* The returned value is in the range 0 to 4294967295.
* @return A 32-bit unsigned integer between 0 and 4294967295.
*/
readVariableSizedUnsignedInt():number
/**
* Reads a variable sized unsigned integer (VX -> 16-bit or 32-bit) from the byte stream.
*
* A VX is written as a variable length 2- or 4-byte element. If the index value is less than 65,280 (0xFF00),
* then the index is written as an unsigned two-byte integer. Otherwise the index is written as an unsigned
* four byte integer with bits 24-31 set. When reading an index, if the first byte encountered is 255 (0xFF),
* then the four-byte form is being used and the first byte should be discarded or masked out.
*
* The returned value is in the range 0 to 65279 or 0 to 2147483647.
* @return A VX 16-bit or 32-bit unsigned integer between 0 to 65279 or 0 and 2147483647.
*/
to be continued...
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | 3.6.3 | development |
webpackEnvironment{
"local_name": "webpack",
"alias": false,
"peer_metadata": null
} | 4.39.1 | development |
webpack-cliEnvironment{
"local_name": "webpack-cli",
"alias": false,
"peer_metadata": null
} | 3.3.6 | development |
ts-loaderEnvironment{
"local_name": "ts-loader",
"alias": false,
"peer_metadata": null
} | 6.0.4 | development |
tslintEnvironment{
"local_name": "tslint",
"alias": false,
"peer_metadata": null
} | 5.20.0 | development |
tslint-loaderEnvironment{
"local_name": "tslint-loader",
"alias": false,
"peer_metadata": null
} | 3.5.4 | development |
fs-extraEnvironment{
"local_name": "fs-extra",
"alias": false,
"peer_metadata": null
} | 8.1.0 | development |
chalkEnvironment{
"local_name": "chalk",
"alias": false,
"peer_metadata": null
} | 2.4.2 | development |
webpack-node-externalsEnvironment{
"local_name": "webpack-node-externals",
"alias": false,
"peer_metadata": null
} | 1.7.2 | development |
clean-webpack-pluginEnvironment{
"local_name": "clean-webpack-plugin",
"alias": false,
"peer_metadata": null
} | 3.0.0 | development |
tslint-config-airbnbEnvironment{
"local_name": "tslint-config-airbnb",
"alias": false,
"peer_metadata": null
} | 5.11.2 | development |
tslint-config-prettierEnvironment{
"local_name": "tslint-config-prettier",
"alias": false,
"peer_metadata": null
} | 1.18.0 | development |
Source distribution
{
"integrity": "sha512-HzFEklP7i8N6RvWaye8Zi+gfR6bLuCqQ7ibzSW6YhqqxCTp3LmSrZ+vW1APUuCFG2j1CL0TIGKtBvrcYnZAbaQ==",
"shasum": "343bba215e9cef2afd6addd78ccd7b72f4931795",
"tarball": "https://registry.npmjs.org/@01/xdata/-/xdata-1.0.1.tgz",
"fileCount": 42,
"unpackedSize": 761369,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiiUQCRA9TVsSAnZWagAAsbYP/i4/Zlhyyd7CpUvfAXQS\nEhLeDdqWX6uN8vTYVlZIWfU9egQG+Ip4LiWs5uCFmQhrTY/95ulxSzd8Kdvj\nAZozef/mPiYGtH1uVgM4oQvfvJOkYcv64LMxWQRbo2IGvaxhpQTEXRCigJGg\n3/wUAe+NSyPXkSidc6CjtxScgta/CqlFTeROggbXAKcH7ROjTN6pLFxwmZTZ\n1Zm8VGSW2qRFStgGEHo8PxlxpvuUFUe6ufrpIqklrmhzyPFNE33e2jdnKTl7\n+mgePqzgOHPlFrMQfAzyDA7Z7tOZ7oSQwGXpiwVZavih+XbDqAKpnmX+G/SB\ntVO9rDrGknUGaU+6UkHZya2/MzI0BqfjGfe7vK0j82xqJYR42Caq4EBUq4dw\nZBuMCmcI+m8z/fOJEzx/ds9eIXqPQoKnioo1FDEeD+tChZHp+1gDGNlriq8x\nyb3kPBKsp/yfP3WNTEpp0tYjFk4KtwOzVNv+VXmNN89W/xk8d2u2x2ZnLtYq\neSmJ+pxfs8bzzTS9v+mmzh9fzwo3gZ+3yWycrbT6bLcLN62SGvfhhJJdTDiy\naB/6U2ADypN1FRUHL4n4r/SJOxHVPnTmFrLm1IfHkVQKf5dccB9Do+8F3s6h\nHKOR/Ga7A6CTiv2TN1P6nc+wW0PM0f9293XhfIch38iT2NbFPKKFBehqyFWn\nVqCN\r\n=/t0K\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIHOyqcdveULX2iW0mj/ZYlxKK1C5t8Huxp7OTc2pg+c/AiEAiAPoIlEYnhL6gLzzJlCo5gUhdNUiqXYD8fgGq9kXkAA="
}
]
}Observed since 20 Oct, 21:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:e833a98cebd5c4e830c40b1b485f6cc831652180e44c942953f7cd643205122a