public char ReadEncodedChar(Encoding encoding) { int size = encoding.IsSingleByte ? 1 : 2; byte[] buffer = ReadBytes (size); return encoding.GetChars(buffer)[0]; }