Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Writes unsigned 24bit int (less than 2^24) to byte array
/// </summary>
Writes unsigned 24bit int (less than 2^24) to byte array
Writes unsigned 24bit int ( less than 2^24 ) to byte array
public static void WriteUInt24(byte[] buffer, uint value, int startIdx = 0)
      {
        buffer[startIdx] = (byte)value;
        buffer[startIdx + 1] = (byte)(value >> 8);
        buffer[startIdx + 2] = (byte)(value >> 16);
      }
public static void WriteUInt24 ( byte [ ] buffer , uint value , int startIdx = 0 ) { buffer [ startIdx ] = ( byte ) value ; buffer [ startIdx + 1 ] = ( byte ) ( value >> 8 ) ; buffer [ startIdx + 2 ] = ( byte ) ( value >> 16 ) ; }
Writes unsigned 24bit int (less than 2^24) to byte array
Writes unsigned 24bit int ( less than 2^24 ) to byte array
buffer
byte[]
value
uint
startIdx
int