コード例 #1
0
        public char ReadChar()
        {
            Check(2);
            CharToByte block = new CharToByte
            {
                Byte0 = _buffer[_position++],
                Byte1 = _buffer[_position++]
            };

            return(block.Value);
        }
コード例 #2
0
        public void WriteChar(char value)
        {
            CharToByte block = new CharToByte()
            {
                Value = value
            };

            Grow(2);
            _buffer[_size++] = block.Byte0;
            _buffer[_size++] = block.Byte1;
        }