V1/Cet.Develop.NETMF.IO/ByteArray/ByteArrayHelpers.cs
/// <summary>
/// Write an <see cref="System.Int16"/> to the given byte array
/// starting from the specified offset, 
/// and composed as the Little-endian format
/// </summary>
/// <param name="buffer">The source byte array</param>
/// <param name="offset">The index of the first byte to be considered</param>
/// <returns>The resulting value</returns>
Write an  to the given byte array
starting from the specified offset,
and composed as the Little-endian format
Write an to the given byte array starting from the specified offset and composed as the Little - endian format
public static void WriteInt16LE(
            byte[] buffer,
            int offset,
            Int16 value)
        {
            buffer[offset] = (byte)value;
            buffer[offset + 1] = (byte)(value >> 8);
        }
public static void WriteInt16LE ( byte [ ] buffer , int offset , Int16 value ) { buffer [ offset ] = ( byte ) value ; buffer [ offset + 1 ] = ( byte ) ( value >> 8 ) ; }
Write an  to the given byte array
starting from the specified offset,
and composed as the Little-endian format
Write an to the given byte array starting from the specified offset and composed as the Little - endian format
The resulting value
The resulting value
buffer
byte[]
The source byte array
The source byte array
offset
int
The index of the first byte to be considered
The index of the first byte to be considered
value
Int16