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