protected function getNextCode()
    {
        if ($this->bytePointer === $this->dataLength) {
            return 257;
        }

        $this->nextData = ($this->nextData << 8) | (\ord($this->data[$this->bytePointer++]) & 0xff);
        $this->nextBits += 8;

        if ($this->nextBits < $this->bitsToGet) {
            $this->nextData = ($this->nextData << 8) | (\ord($this->data[$this->bytePointer++]) & 0xff);
            $this->nextBits += 8;
        }

        $code = ($this->nextData >> ($this->nextBits - $this->bitsToGet)) & $this->andTable[$this->bitsToGet - 9];
        $this->nextBits -= $this->bitsToGet;

        return $code;
    }
protected function getNextCode()
    {
        if ($this->bytePointer === $this->dataLength) {
            return 257;
        }

        $this->nextData = ($this->nextData << 8) | (\ord($this->data[$this->bytePointer++]) & 0xff);
        $this->nextBits += 8;

        if ($this->nextBits < $this->bitsToGet) {
            $this->nextData = ($this->nextData << 8) | (\ord($this->data[$this->bytePointer++]) & 0xff);
            $this->nextBits += 8;
        }

        $code = ($this->nextData >> ($this->nextBits - $this->bitsToGet)) & $this->andTable[$this->bitsToGet - 9];
        $this->nextBits -= $this->bitsToGet;

        return $code;
    }
protected function getNextCode ( ) { if ( $ this -> bytePointer === $ this -> dataLength ) { return 257 ; } $ this -> nextData = ( $ this -> nextData << 8 ) | ( \ ord ( $ this -> data [ $ this -> bytePointer ++ ] ) & 0xff ) ; $ this -> nextBits += 8 ; if ( $ this -> nextBits < $ this -> bitsToGet ) { $ this -> nextData = ( $ this -> nextData << 8 ) | ( \ ord ( $ this -> data [ $ this -> bytePointer ++ ] ) & 0xff ) ; $ this -> nextBits += 8 ; } $ code = ( $ this -> nextData >> ( $ this -> nextBits - $ this -> bitsToGet ) ) & $ this -> andTable [ $ this -> bitsToGet - 9 ] ; $ this -> nextBits -= $ this -> bitsToGet ; return $ code ; }
Returns the next 9, 10, 11 or 12 bits.

@return integer
Returns the next 9 10 11 or 12 bits .