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