Source/NFX/IOMiscUtils.cs
/// <summary>
/// Writes a short encoded as little endian to buffer at the specified index
/// </summary>
Writes a short encoded as little endian to buffer at the specified index
Writes a short encoded as little endian to buffer at the specified index
public static void WriteLEShort(this byte[] buf, int idx, short value)
        {
            buf[idx+0] = (byte)(value);
            buf[idx+1] = (byte)(value >> 8);
        }
public static void WriteLEShort ( this byte [ ] buf , int idx , short value ) { buf [ idx + 0 ] = ( byte ) ( value ) ; buf [ idx + 1 ] = ( byte ) ( value >> 8 ) ; }
Writes a short encoded as little endian to buffer at the specified index
Writes a short encoded as little endian to buffer at the specified index
byte[]
this
idx
int
value
short