Source/NFX/IOMiscUtils.cs
/// <summary>
/// Writes an unsigned integer encoded as big endian to buffer at the specified index
/// </summary>
Writes an unsigned integer encoded as big endian to buffer at the specified index
Writes an unsigned integer encoded as big endian to buffer at the specified index
public static void WriteBEUInt32(this byte[] buf, int idx, UInt32 value)
        {
            buf[idx+0] = (byte)(value  >> 24);
            buf[idx+1] = (byte)(value  >> 16);
            buf[idx+2] = (byte)(value  >> 8);
            buf[idx+3] = (byte)(value );
        }
public static void WriteBEUInt32 ( this byte [ ] buf , int idx , UInt32 value ) { buf [ idx + 0 ] = ( byte ) ( value >> 24 ) ; buf [ idx + 1 ] = ( byte ) ( value >> 16 ) ; buf [ idx + 2 ] = ( byte ) ( value >> 8 ) ; buf [ idx + 3 ] = ( byte ) ( value ) ; }
Writes an unsigned integer encoded as big endian to buffer at the specified index
Writes an unsigned integer encoded as big endian to buffer at the specified index
byte[]
this
idx
int
value
UInt32