private void PutMBCSByte(byte b) { try { char ch = _encoding.PutByte(b); if (ch != '\0') { _processor.ProcessChar(ch); } } catch (Exception) { _processor.InvalidCharDetected(_encoding.Buffer); _encoding.Reset(); } }
private void PutMBCSByte(byte b) { char[] t = new char[2]; try { char ch = _encoding.PutByte(b); if (ch != '\0') { _terminal.ProcessChar(ch); } } catch (Exception) { _terminal.InvalidCharDetected(_encoding.Encoding, _encoding.Buffer); _encoding.Reset(); } }
private void PutMBCSByte(byte b) { try { // Note: // An incoming character may be mapped to the Unicode's private-use area. // The character code will be reverted when the character is added to the line buffer (GLine). char ch = _encoding.PutByte(b); if (ch != '\0') { _processor.ProcessChar(ch); } } catch (Exception) { _processor.InvalidCharDetected(_encoding.Buffer); _encoding.Reset(); } }