lithium\g11n\catalog\adapter\Gettext::_readLong()

protected method

Reads an unsigned long from stream respecting endianess.

Parameters

  • resource $stream
  • boolean $isBigEndian

Returns

integer

Source

	protected function _readLong($stream, $isBigEndian) {
		$result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
		$result = current($result);
		return (integer) substr($result, -8);
	}