public virtual void WriteShort(short i) { WriteByte((byte)(sbyte)((ushort)i >> 8)); WriteByte((byte)(sbyte)(ushort)i); }