Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Writes 16-bit int to byte array
/// </summary>
Writes 16-bit int to byte array
Writes 16 - bit int to byte array
public static void WriteInt16(byte[] buffer, short value, int startIdx = 0)
      {
        buffer[startIdx] = (byte)value;
        buffer[startIdx + 1] = (byte)(value >> 8);
      }
public static void WriteInt16 ( byte [ ] buffer , short value , int startIdx = 0 ) { buffer [ startIdx ] = ( byte ) value ; buffer [ startIdx + 1 ] = ( byte ) ( value >> 8 ) ; }
Writes 16-bit int to byte array
Writes 16 - bit int to byte array
buffer
byte[]
value
short
startIdx
int