public override void SetChar(int index, char c) { // If we got the character from a string its encoding is compatible with the current encoding and thus all characters are single-byte. Debug.Assert(c <= 0xff); SetByte(index, (byte)c); }