src/PelConvert.php
public static function bytesToSRational($bytes, $offset, $endian)
    {
        return [
            self::bytesToSLong($bytes, $offset, $endian),
            self::bytesToSLong($bytes, $offset + 4, $endian)
        ];
    }
public static function bytesToSRational($bytes, $offset, $endian)
    {
        return [
            self::bytesToSLong($bytes, $offset, $endian),
            self::bytesToSLong($bytes, $offset + 4, $endian)
        ];
    }
public static function bytesToSRational ( $ bytes , $ offset , $ endian ) { return [ self :: bytesToSLong ( $ bytes , $ offset , $ endian ) , self :: bytesToSLong ( $ bytes , $ offset + 4 , $ endian ) ] ; }
Extract a signed rational from bytes.

@param string $bytes

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