mirror of
https://github.com/codedread/bitjs
synced 2025-10-03 17:49:16 +02:00
Update docs for BitStream.getBits() and add a TODO
This commit is contained in:
parent
f1bb065ec0
commit
e755acc70b
1 changed files with 4 additions and 1 deletions
|
@ -169,7 +169,10 @@ bitjs.io.BitStream.prototype.peekBits_rtl = function(n, movePointers) {
|
|||
|
||||
|
||||
/**
|
||||
* Some voodoo magic.
|
||||
* Peek at 16 bits from current position in the buffer.
|
||||
* Bit at (bytePtr,bitPtr) has the highest position in returning data.
|
||||
* Taken from getbits.hpp in unrar.
|
||||
* TODO: Move this out of BitStream and into unrar.
|
||||
*/
|
||||
bitjs.io.BitStream.prototype.getBits = function() {
|
||||
return (((((this.bytes[this.bytePtr] & 0xff) << 16) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue