@thi.ng/bitstream 2.0.1 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/input.js +0 -6
- package/output.js +0 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.5...@thi.ng/bitstream@2.0.6) (2021-10-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @thi.ng/bitstream
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.4...@thi.ng/bitstream@2.0.5) (2021-10-28)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @thi.ng/bitstream
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.3...@thi.ng/bitstream@2.0.4) (2021-10-25)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @thi.ng/bitstream
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.2...@thi.ng/bitstream@2.0.3) (2021-10-15)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @thi.ng/bitstream
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.1...@thi.ng/bitstream@2.0.2) (2021-10-15)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @thi.ng/bitstream
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.0...@thi.ng/bitstream@2.0.1) (2021-10-13)
|
|
7
47
|
|
|
8
48
|
**Note:** Version bump only for package @thi.ng/bitstream
|
package/README.md
CHANGED
package/input.js
CHANGED
|
@@ -2,12 +2,6 @@ import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
|
|
|
2
2
|
import { illegalState } from "@thi.ng/errors/illegal-state";
|
|
3
3
|
const U32 = Math.pow(2, 32);
|
|
4
4
|
export class BitInputStream {
|
|
5
|
-
buffer;
|
|
6
|
-
start;
|
|
7
|
-
limit;
|
|
8
|
-
pos;
|
|
9
|
-
bitPos;
|
|
10
|
-
bit;
|
|
11
5
|
constructor(buffer, offset = 0, limit = buffer.length << 3) {
|
|
12
6
|
this.buffer = buffer;
|
|
13
7
|
this.start = offset;
|
package/output.js
CHANGED
|
@@ -3,11 +3,6 @@ import { BitInputStream } from "./input.js";
|
|
|
3
3
|
const DEFAULT_BUF_SIZE = 0x10;
|
|
4
4
|
const U32 = Math.pow(2, 32);
|
|
5
5
|
export class BitOutputStream {
|
|
6
|
-
buffer;
|
|
7
|
-
start;
|
|
8
|
-
pos;
|
|
9
|
-
bit;
|
|
10
|
-
bitPos;
|
|
11
6
|
constructor(buffer, offset = 0) {
|
|
12
7
|
this.buffer =
|
|
13
8
|
typeof buffer === "undefined"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/bitstream",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "ES6 iterator based read/write bit streams with support for variable word widths",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/errors": "^2.0.
|
|
37
|
+
"@thi.ng/errors": "^2.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@thi.ng/testament": "^0.1.
|
|
40
|
+
"@thi.ng/testament": "^0.1.6"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"binary",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"rle-pack"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
|
|
77
77
|
}
|