1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-04 01:59:15 +02:00

io: Add skip() method to BitStream and beef up unit tests

This commit is contained in:
Jeff Schiller 2024-01-20 17:30:42 -08:00
parent 45fdedd663
commit c07aa83e12
3 changed files with 160 additions and 58 deletions

View file

@ -1,7 +1,7 @@
/*
* bytestream.js
*
* Provides readers for byte streams.
* A pull stream for bytes.
*
* Licensed under the MIT License
*
@ -88,7 +88,7 @@ export class ByteStream {
}
/**
* Returns how many bytes have been read in the stream since the beginning of time.
* Returns how many bytes have been consumed (read or skipped) since the beginning of time.
* @returns {number}
*/
getNumBytesRead() {