Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Reads 32-bit int from stream
/// </summary>
Reads 32-bit int from stream
Reads 32 - bit int from stream
public static Int32 ReadInt32(Stream stream)
      {
        var buf = readFromStream(stream, 4, "ReadInt32");
        return buf[0] |
               (buf[1] << 8) |
               (buf[2] << 16) |
               (buf[3] << 24);
      }
public static Int32 ReadInt32 ( Stream stream ) { var buf = readFromStream ( stream , 4 , " " ) ; return buf [ 0 ] | ( buf [ 1 ] << 8 ) | ( buf [ 2 ] << 16 ) | ( buf [ 3 ] << 24 ) ; }
Reads 32-bit int from stream
Reads 32 - bit int from stream
stream
Stream