bit-buffer
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -9,2 +9,3 @@ declare module 'bit-buffer' { | ||
readonly byteLength: number; | ||
bigEndian: boolean; | ||
@@ -57,2 +58,3 @@ getBits(offset: number, bits: number, signed?: boolean): number; | ||
index: number; | ||
bigEndian: boolean; | ||
@@ -59,0 +61,0 @@ readBits(bits: number, signed?: boolean): number; |
{ | ||
"name": "bit-buffer", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Bit-level reads and writes for ArrayBuffers", | ||
@@ -11,3 +11,4 @@ "main": "bit-buffer.js", | ||
"scripts": { | ||
"test": "make test" | ||
"test": "mocha --ui tdd", | ||
"lint": "jshint bit-buffer.js" | ||
}, | ||
@@ -32,6 +33,6 @@ "repository": { | ||
"devDependencies": { | ||
"@types/node": "^7.0.5", | ||
"jshint": "^2.9.4", | ||
"mocha": "^3.2.0" | ||
"@types/node": "^14.14.22", | ||
"jshint": "^2.12.0", | ||
"mocha": "^8.2.1" | ||
} | ||
} |
# BitBuffer | ||
[![Build Status](https://travis-ci.org/inolen/bit-buffer.svg?branch=master)](https://travis-ci.org/inolen/bit-buffer) | ||
![Node.js CI](https://github.com/inolen/bit-buffer/workflows/Node.js%20CI/badge.svg) | ||
@@ -5,0 +5,0 @@ BitBuffer provides two objects, `BitView` and `BitStream`. `BitView` is a wrapper for ArrayBuffers, similar to JavaScript's [DataView](https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays/DataView), but with support for bit-level reads and writes. `BitStream` is a wrapper for a `BitView` used to help maintain your current buffer position, as well as to provide higher-level read / write operations such as for ASCII strings. |
16
test.js
@@ -556,3 +556,3 @@ var assert = require('assert'), | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -566,3 +566,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -575,3 +575,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -584,3 +584,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -598,3 +598,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -610,3 +610,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -622,3 +622,3 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
@@ -633,4 +633,4 @@ | ||
assert.deepEqual(u8, [0x01, 0x02]); | ||
assert.deepEqual(u8, new Uint8Array([0x01, 0x02])); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16
976
40464