src/PelConvert.php
public static function bytesToSLong($bytes, $offset, $endian)
    {
        $n = self::bytesToLong($bytes, $offset, $endian);
        if ($n > 2147483647) {
            return $n - 4294967296;
        } else {
            return $n;
        }
    }
public static function bytesToSLong($bytes, $offset, $endian)
    {
        $n = self::bytesToLong($bytes, $offset, $endian);
        if ($n > 2147483647) {
            return $n - 4294967296;
        } else {
            return $n;
        }
    }
public static function bytesToSLong ( $ bytes , $ offset , $ endian ) { $ n = self :: bytesToLong ( $ bytes , $ offset , $ endian ) ; if ( $ n > 2147483647 ) { return $ n - 4294967296 ; } else { return $ n ; } }
Extract a signed long from bytes.

@param string $bytes

@param integer $offset
The long found at offset will be returned
as an integer. There must be at least four bytes available
beginning at the offset given.
@param boolean $endian
one of {@link LITTLE_ENDIAN} and {@link
BIG_ENDIAN}. *
@return integer the signed long found at offset, e.g., an integer in
the range -2147483648 to 2147483647.
Extract a signed long from bytes .