public char ReadChar() { Check(2); CharToByte block = new CharToByte { Byte0 = _buffer[_position++], Byte1 = _buffer[_position++] }; return(block.Value); }
public void WriteChar(char value) { CharToByte block = new CharToByte() { Value = value }; Grow(2); _buffer[_size++] = block.Byte0; _buffer[_size++] = block.Byte1; }