lib/Type/TypeJpeg.php
protected function extractMarkerLength($i)
	{
		// Extract length only
		list(, $unpacked) = unpack("H*", substr($this->data, $i, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$markerLength = hexdec(substr($unpacked, 0, 4));

		return $markerLength;
	}
protected function extractMarkerLength($i)
	{
		// Extract length only
		list(, $unpacked) = unpack("H*", substr($this->data, $i, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$markerLength = hexdec(substr($unpacked, 0, 4));

		return $markerLength;
	}
protected function extractMarkerLength ( $ i ) { // Extract length only list ( , $ unpacked ) = unpack ( "H*" , substr ( $ this -> data , $ i , self :: LONG_SIZE ) ) ; // Get width and height from unpacked size info $ markerLength = hexdec ( substr ( $ unpacked , 0 , 4 ) ) ; return $ markerLength ; }
Extract marker length from data

@param int $i Current index
@return int Length of current marker
Extract marker length from data