src/Type/Single.php
private function bitReader(BinaryReader $br, $data)
    {
        $mask = 0x7FFFFFFF >> ($br->getCurrentBit() - 1);
        $value = (($data >> (8 - $br->getCurrentBit())) & $mask) | ($br->getNextByte() << (24 + $br->getCurrentBit()));
        $br->setNextByte($data & 0xFF);

        return $value;
    }
private function bitReader(BinaryReader $br, $data)
    {
        $mask = 0x7FFFFFFF >> ($br->getCurrentBit() - 1);
        $value = (($data >> (8 - $br->getCurrentBit())) & $mask) | ($br->getNextByte() << (24 + $br->getCurrentBit()));
        $br->setNextByte($data & 0xFF);

        return $value;
    }
@param \PhpBinaryReader\BinaryReader $br
@param int $data

@return int