public function getValue(int $end = 0, int $length = 8): int
    {
        $result = 0;
        for ($i = $end + $length - 1; $i >= $end; $i--) {
            $result <<= 8;
            $result |= $this->bytes[$i];
        }
        return $result;
    }
public function getValue(int $end = 0, int $length = 8): int
    {
        $result = 0;
        for ($i = $end + $length - 1; $i >= $end; $i--) {
            $result <<= 8;
            $result |= $this->bytes[$i];
        }
        return $result;
    }
public function getValue ( int $ end = 0 , int $ length = 8 ) : int { $ result = 0 ; for ( $ i = $ end + $ length - 1 ; $ i >= $ end ; $ i -- ) { $ result <<= 8 ; $ result |= $ this -> bytes [ $ i ] ; } return $ result ; }
Get value from bytes array

@param int $end
@param int $length
@return int
Get value from bytes array