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