/// <summary> /// Reads a 16 bit unsigned integer written using Write(UInt16) /// </summary> public UInt16 ReadUInt16() { Debug.CheckArgument(m_bitLength - m_readPosition >= 16, c_readOverflowError); uint retval = BitWriter.ReadUInt16(m_data, 16, m_readPosition); m_readPosition += 16; return((ushort)retval); }