lithium\g11n\catalog\adapter\Gettext::_readLong PHP Method

_readLong() protected method

Reads an unsigned long from stream respecting endianess.
protected _readLong ( resource $stream, boolean $isBigEndian ) : integer
$stream resource
$isBigEndian boolean
return integer
    protected function _readLong($stream, $isBigEndian)
    {
        $result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
        $result = current($result);
        return (int) substr($result, -8);
    }