original_string: private function readLong($stream, bool $isBigEndian): int
      {
          $result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
          $result = current($result);
  
          return (int) substr($result, -8);
      }
code: private function readLong($stream, bool $isBigEndian): int
      {
          $result = unpack($isBigEndian ? 'N1' : 'V1', fread($stream, 4));
          $result = current($result);
  
          return (int) substr($result, -8);
      }
code_tokens: private function readLong ( $ stream , bool $ isBigEndian ) : int { $ result = unpack ( $ isBigEndian ? 'N1' : 'V1' , fread ( $ stream , 4 ) ) ; $ result = current ( $ result ) ; return ( int ) substr ( $ result , - 8 ) ; }
docstring: Reads an unsigned long from stream respecting endianness.
  
  @param resource $stream
docstring_tokens: Reads an unsigned long from stream respecting endianness .