Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Reads 64-bit int from stream
/// </summary>
Reads 64-bit int from stream
Reads 64 - bit int from stream
public static Int64 ReadInt64(Stream stream)
      {
        var buf = readFromStream(stream, 8, "ReadInt64");
        return (long)buf[0] |
               ((long)buf[1] << 8) |
               ((long)buf[2] << 16) |
               ((long)buf[3] << 24) |
               ((long)buf[4] << 32) |
               ((long)buf[5] << 40) |
               ((long)buf[6] << 48) |
               ((long)buf[7] << 56);
      }
public static Int64 ReadInt64 ( Stream stream ) { var buf = readFromStream ( stream , 8 , " " ) ; return ( long ) buf [ 0 ] | ( ( long ) buf [ 1 ] << 8 ) | ( ( long ) buf [ 2 ] << 16 ) | ( ( long ) buf [ 3 ] << 24 ) | ( ( long ) buf [ 4 ] << 32 ) | ( ( long ) buf [ 5 ] << 40 ) | ( ( long ) buf [ 6 ] << 48 ) | ( ( long ) buf [ 7 ] << 56 ) ; }
Reads 64-bit int from stream
Reads 64 - bit int from stream
stream
Stream