src/MySQLReplication/BinaryDataReader/BinaryDataReader.php
public function getBinarySlice($binary, $start, $size, $binaryLength)
    {
        $binary >>= $binaryLength - ($start + $size);
        $mask = ((1 << $size) - 1);

        return $binary & $mask;
    }
public function getBinarySlice($binary, $start, $size, $binaryLength)
    {
        $binary >>= $binaryLength - ($start + $size);
        $mask = ((1 << $size) - 1);

        return $binary & $mask;
    }
public function getBinarySlice ( $ binary , $ start , $ size , $ binaryLength ) { $ binary >>= $ binaryLength - ( $ start + $ size ) ; $ mask = ( ( 1 << $ size ) - 1 ) ; return $ binary & $ mask ; }
Read a part of binary data and extract a number
@param int $binary
@param int $start
@param int $size
@param int $binaryLength
@return int
Read a part of binary data and extract a number