コード例 #1
0
        /// <inheritdoc />
        public override void WriteLine()
        {
            var Length = CoreNewLine.Length;

            EnsureMinimum(Length);

            CoreNewLine.AsSpan().CopyTo(_PendingBuffer.Span.Slice(_PendingChars));

            _PendingChars += Length;
        }
コード例 #2
0
        /// <inheritdoc />
        public override void WriteLine(char value)
        {
            var Length = CoreNewLine.Length + 1;

            EnsureMinimum(Length);

            _PendingBuffer.Span[_PendingChars] = value;
            CoreNewLine.AsSpan().CopyTo(_PendingBuffer.Span.Slice(_PendingChars + 1));

            _PendingChars += Length;
        }