1
0
Fork 0
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:
codedread 2017-02-18 01:41:42 -08:00
parent f1bb065ec0
commit e755acc70b

View file

@ -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) +