ToUInt16() public method

Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.
public ToUInt16 ( byte value, int startIndex ) : ushort
value byte An array of bytes.
startIndex int The starting position within value.
return ushort
示例#1
0
 /// <summary>
 /// Reads an Unsigned int16.
 /// </summary>
 /// <returns></returns>
 public override ushort ReadUInt16()
 {
     SynchBits();
     ReadInternal(buffer, 2);
     return(bitConverter.ToUInt16(buffer, 0));
 }