public int PutUInt16(ushort var) { int prevIndex = WrittenBytes; Write(BitConverter.GetBytes(var)); return prevIndex; }