Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Reads 32-bit int from byte array
/// </summary>
Reads 32-bit int from byte array
Reads 32 - bit int from byte array
public static Int32 ReadInt32(byte[] bytes, int startIdx = 0)
      {
        return bytes[startIdx] |
               (bytes[startIdx + 1] << 8) |
               (bytes[startIdx + 2] << 16) |
               (bytes[startIdx + 3] << 24);
      }
public static Int32 ReadInt32 ( byte [ ] bytes , int startIdx = 0 ) { return bytes [ startIdx ] | ( bytes [ startIdx + 1 ] << 8 ) | ( bytes [ startIdx + 2 ] << 16 ) | ( bytes [ startIdx + 3 ] << 24 ) ; }
Reads 32-bit int from byte array
Reads 32 - bit int from byte array
bytes
byte[]
startIdx
int