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:
parent
45fdedd663
commit
c07aa83e12
3 changed files with 160 additions and 58 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue