Пример #1
0
 /// <summary>
 /// Read an unsigned short integer (2 bytes).
 /// </summary>
 public ushort ReadUShort()
 {
     ReadBytes(HelperBytes, 0, 2);
     return(PrimitiveConversionHelper.BytesToUShort16(HelperBytes));
 }
Пример #2
0
 /// <summary>
 /// Read a character (2 bytes).
 /// </summary>
 /// <returns></returns>
 public char ReadChar()
 {
     ReadBytes(HelperBytes, 0, 2);
     return((char)PrimitiveConversionHelper.BytesToUShort16(HelperBytes));
 }