Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Writes 64-bit int to byte array
/// </summary>
Writes 64-bit int to byte array
Writes 64 - bit int to byte array
public static void WriteInt64(byte[] buffer, long value, int startIdx = 0)
      {
        buffer[startIdx] = (byte)value;
        buffer[startIdx + 1] = (byte)(value >> 8);
        buffer[startIdx + 2] = (byte)(value >> 16);
        buffer[startIdx + 3] = (byte)(value >> 24);
        buffer[startIdx + 4] = (byte)(value >> 32);
        buffer[startIdx + 5] = (byte)(value >> 40);
        buffer[startIdx + 6] = (byte)(value >> 48);
        buffer[startIdx + 7] = (byte)(value >> 56);
      }
public static void WriteInt64 ( byte [ ] buffer , long value , int startIdx = 0 ) { buffer [ startIdx ] = ( byte ) value ; buffer [ startIdx + 1 ] = ( byte ) ( value >> 8 ) ; buffer [ startIdx + 2 ] = ( byte ) ( value >> 16 ) ; buffer [ startIdx + 3 ] = ( byte ) ( value >> 24 ) ; buffer [ startIdx + 4 ] = ( byte ) ( value >> 32 ) ; buffer [ startIdx + 5 ] = ( byte ) ( value >> 40 ) ; buffer [ startIdx + 6 ] = ( byte ) ( value >> 48 ) ; buffer [ startIdx + 7 ] = ( byte ) ( value >> 56 ) ; }
Writes 64-bit int to byte array
Writes 64 - bit int to byte array
buffer
byte[]
value
long
startIdx
int