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