Source/NFX/IOMiscUtils.cs
/// <summary>
/// Reads an unsigned integer encoded as big endian from buffer at the specified index
/// and increments the idx by the number of bytes read
/// </summary>
Reads an unsigned integer encoded as big endian from buffer at the specified index
and increments the idx by the number of bytes read
Reads an unsigned integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
public static uint ReadBEUInt32(this byte[] buf, ref int idx)
        {
            return  ((uint)buf[idx++] << 24) +
                    ((uint)buf[idx++] << 16) +
                    ((uint)buf[idx++] << 8) +
                     (uint)buf[idx++];
        }
public static uint ReadBEUInt32 ( this byte [ ] buf , ref int idx ) { return ( ( uint ) buf [ idx ++ ] << 24 ) + ( ( uint ) buf [ idx ++ ] << 16 ) + ( ( uint ) buf [ idx ++ ] << 8 ) + ( uint ) buf [ idx ++ ] ; }
Reads an unsigned integer encoded as big endian from buffer at the specified index
and increments the idx by the number of bytes read
Reads an unsigned integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
byte[]
this
<not_specific>
int
ref
<not_specific>