System.Net.Mail.BufferBuilder.Append C# (CSharp) Method

Append() private method

private Append ( string value, int offset, int count ) : void
value string
offset int
count int
return void
        internal void Append(string value, int offset, int count)
        {
            EnsureBuffer(count);
            for (int i = 0; i < count; i++)
            {
                char c = value[offset + i];
                if ((ushort)c > 0xFF)
                {
                    throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, c));
                }

                _buffer[_offset + i] = (byte)c;
            }

            _offset += count;
        }

Same methods

BufferBuilder::Append ( byte value ) : void
BufferBuilder::Append ( byte value, int offset, int count ) : void
BufferBuilder::Append ( string value ) : void
BufferBuilder::Append ( string value, bool allowUnicode ) : void
BufferBuilder::Append ( string value, int offset, int count, bool allowUnicode ) : void