Source/NFX/IOMiscUtils.cs
/// <summary>
/// Writes an integer encoded as big endian to buffer at the specified index
/// </summary>
Writes an integer encoded as big endian to buffer at the specified index
Writes an integer encoded as big endian to buffer at the specified index
public static void WriteBEInt32(this byte[] buf, int idx, Int32 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 WriteBEInt32 ( this byte [ ] buf , int idx , Int32 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 integer encoded as big endian to buffer at the specified index
Writes an integer encoded as big endian to buffer at the specified index
byte[]
this
idx
int
value
Int32