1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 17:49:16 +02:00
Commit graph

29 commits

Author SHA1 Message Date
Jeff Schiller
c07aa83e12 io: Add skip() method to BitStream and beef up unit tests 2024-01-20 17:30:42 -08:00
Jeff Schiller
2825df0bb3 Fix bug with ByteStream.skip(0) not returning itself 2024-01-15 23:14:28 -08:00
Jeff Schiller
2645f57b68 Update exported types for image parsers. 2024-01-15 13:09:43 -08:00
Jeff Schiller
24edc8cbaf Minor typo in comment 2024-01-15 11:42:54 -08:00
Jeff Schiller
5fe6688145 Add optional boolean parameter for setLittleEndian() and setBigEndian() 2024-01-10 21:47:00 +09:00
Jeff Schiller
053d4bc127 Fix bug with tee() so that endianness is also copied to teed stream. 2024-01-10 21:22:53 +09:00
Jeff Schiller
208b69a65d Make skip() return the ByteStream, for chaining. Document the tee() method. 2024-01-04 22:39:25 +09:00
Jeff Schiller
acaa3a90d9 Add skip() method to ByteStream 2024-01-04 22:22:26 +09:00
Jeff Schiller
cb95ddc3ef io: Handle big-endian in ByteStream 2023-12-25 14:17:10 -08:00
Jeff Schiller
cf26e0a2de Add some unit tests for unarchivers. Provide a way to disconnect the impl from the host (for unit tests). 2023-12-16 15:28:37 -08:00
Jeff Schiller
bb0f40394e codecs: Properly detect Matroska audio/video. Add codec support for AV1 video and DTS audio. Bump to 1.1.4. 2023-10-19 11:41:02 -07:00
Jeff Schiller
63e84dadb0 Issue #28: Removed build step for bitjs.io now that all browsers (Firefox 114+) support ES Module Workers. 2023-05-28 10:39:35 -07:00
Jeff Schiller
84514d1617 Update to @returns in all jsdoc 2022-04-27 13:31:18 -07:00
Jeff Schiller
2a90e32c89 Updates to jsdoc for better IDE analysis. A couple other minor tweaks. 2021-12-12 11:01:41 -08:00
codedread
ab5f6fc6d2 Make ByteStream and ByteBuffer into modules with Worker veresions via build for Issue #16 2020-04-02 00:07:14 -07:00
codedread
a6f9026ab1 Remove pushing and throwing errors from BitStream and update unit tests. Update unrar to use a ByteStream for the RAR file header (like unzip) 2018-01-30 00:16:38 -08:00
codedread
950dc65b56 Improve performance of peeking bytes by copying subarrays instead of copying byte-by-byte 2018-01-26 08:59:51 -08:00
codedread
8c630c170c Add counters for number of bytes/bits read in streams since the beginning of time 2018-01-26 00:02:16 -08:00
codedread
3c5c9cbd4c Fix tee() methods on streams and add a unit test. Also improve error message logging in the test harness 2018-01-23 23:56:03 -08:00
codedread
adbd182bcc Tidy up some comments 2018-01-21 02:24:13 -08:00
codedread
5aa0110faf Add tee() methods to BitStream and ByteStream 2018-01-21 02:06:07 -08:00
codedread
5b10c1a986 Make bitstreams pushable 2018-01-21 01:49:17 -08:00
codedread
26d06e8d3b Make ByteStream pushable (allow multiple pages of bytes) 2018-01-20 23:38:52 -08:00
codedread
b593fc6d8e Allow 0-length reads, the unarchivers expect this 2018-01-19 20:16:28 -08:00
codedread
ec27877ffa Improve parameter validation and test coverage. Also add errorws when trying to seek past the end of the stream 2018-01-19 17:40:43 -08:00
codedread
d2a4329893 Whitespace and a couple arrow functions 2017-02-21 12:05:03 -08:00
codedread
14abef20d6 Convert to ES6 classes 2017-02-20 14:36:48 -08:00
codedread
639a23e69b Start the move to es6: Change all vars to lets/consts 2017-02-20 12:47:17 -08:00
codedread
5ac3c1d005 Split up io like antimatter15 did 2017-02-15 21:19:57 -08:00