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