Source/NFX/IOMiscUtils.cs
/// <summary>
/// Writes an unsigned long integer encoded as little endian to buffer at the specified index
/// </summary>
Writes an unsigned long integer encoded as little endian to buffer at the specified index
Writes an unsigned long integer encoded as little endian to buffer at the specified index
public static void WriteLEUInt64(this byte[] buf, int idx, UInt64 value)
        {
          buf[idx+0] = (byte)(value);
          buf[idx+1] = (byte)(value >> 8 );
          buf[idx+2] = (byte)(value >> 16);
          buf[idx+3] = (byte)(value >> 24);
          buf[idx+4] = (byte)(value >> 32);
          buf[idx+5] = (byte)(value >> 40);
          buf[idx+6] = (byte)(value >> 48);
          buf[idx+7] = (byte)(value >> 56);
        }
public static void WriteLEUInt64 ( this byte [ ] buf , int idx , UInt64 value ) { buf [ idx + 0 ] = ( byte ) ( value ) ; buf [ idx + 1 ] = ( byte ) ( value >> 8 ) ; buf [ idx + 2 ] = ( byte ) ( value >> 16 ) ; buf [ idx + 3 ] = ( byte ) ( value >> 24 ) ; buf [ idx + 4 ] = ( byte ) ( value >> 32 ) ; buf [ idx + 5 ] = ( byte ) ( value >> 40 ) ; buf [ idx + 6 ] = ( byte ) ( value >> 48 ) ; buf [ idx + 7 ] = ( byte ) ( value >> 56 ) ; }
Writes an unsigned long integer encoded as little endian to buffer at the specified index
Writes an unsigned long integer encoded as little endian to buffer at the specified index
byte[]
this
idx
int
value
UInt64