lithium\g11n\catalog\adapter\Gettext::_readLong()
Reads an unsigned long from stream respecting endianess.
Parameters
-
resource
$stream
-
boolean
$isBigEndian
Returns
integerSource
protected function _readLong($stream, $isBigEndian) {
$result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
$result = current($result);
return (integer) substr($result, -8);
}