Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Writes 32bit int to byte array
/// </summary>
Writes 32bit int to byte array
Writes 32bit int to byte array
public static void WriteInt32(byte[] buffer, int 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);
      }
public static void WriteInt32 ( byte [ ] buffer , int 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 ) ; }
Writes 32bit int to byte array
Writes 32bit int to byte array
buffer
byte[]
value
int
startIdx
int