Source/NFX/Serialization/BSON/BinUtils.cs
/// <summary>
/// Reads 24-bit int (less than 2^24) from byte array
/// </summary>
Reads 24-bit int (less than 2^24) from byte array
Reads 24 - bit int ( less than 2^24 ) from byte array
public static UInt32 ReadUInt24(byte[] bytes, int startIdx = 0)
      {
        return (uint)(bytes[startIdx] |
                     (bytes[startIdx + 1] << 8) |
                     (bytes[startIdx + 2] << 16));
      }
public static UInt32 ReadUInt24 ( byte [ ] bytes , int startIdx = 0 ) { return ( uint ) ( bytes [ startIdx ] | ( bytes [ startIdx + 1 ] << 8 ) | ( bytes [ startIdx + 2 ] << 16 ) ) ; }
Reads 24-bit int (less than 2^24) from byte array
Reads 24 - bit int ( less than 2^24 ) from byte array
bytes
byte[]
startIdx
int