Esempio n. 1
0
 /// <summary>
 /// Reads a 16-bit unsigned integer from the stream, using the bit converter
 /// for this reader. 2 bytes are read.
 /// </summary>
 /// <returns>The 16-bit unsigned integer read</returns>
 public ushort ReadUnsignedShort()
 {
     ReadInternal(buffer, 2);
     return(BitConverter.ToUnsignedShort(buffer, 0));
 }