public int PutChar(char var) { int prevIndex = WrittenBytes; Write(BitConverter.GetBytes(var), 0, sizeof(char)); return prevIndex; }