FizVizController/FizVizController/Commands/FizVizCommand.cs
/// <summary>
/// Write a number as two bytes to the data array starting at offset
/// The number must fit in 14 bits.
/// </summary>
/// <param name="data"></param>
/// <param name="value"></param>
/// <param name="offset"></param>
Write a number as two bytes to the data array starting at offset
The number must fit in 14 bits.
Write a number as two bytes to the data array starting at offset The number must fit in 14 bits .
protected void WriteTwoBytes(byte[] data, uint value, uint offset)
        {
            data[offset++] = Convert.ToByte(value & 0x7F);
            data[offset] = Convert.ToByte((value >> 7) & 0x7F);
        }
protected void WriteTwoBytes ( byte [ ] data , uint value , uint offset ) { data [ offset ++ ] = Convert . ToByte ( value & 0x7F ) ; data [ offset ] = Convert . ToByte ( ( value >> 7 ) & 0x7F ) ; }
Write a number as two bytes to the data array starting at offset
The number must fit in 14 bits.
Write a number as two bytes to the data array starting at offset The number must fit in 14 bits .
data
byte[]
None
value
uint
None
offset
uint
None