protected function _readLong($stream, $isBigEndian)
    {
        $result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
        $result = current($result);

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

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

@param resource $stream The File being read.
@param bool $isBigEndian Whether or not the current platform is Big Endian
@return int
Reads an unsigned long from stream respecting endianess .