public short read_ushort()
{
long l = this.read_long(true);
short i = (short)l;
if (l != (i & 0xffffL))
{
throw new OtpErlangDecodeException("Value does not fit in ushort: " + l);
}
return i;
}