2 writes to _buffer
System.Net.Mail (2)
System\Net\BufferBuilder.cs (2)
18
_buffer
= new byte[initialSize];
27
_buffer
= newBuffer;
12 references to _buffer
System.Net.Mail (12)
System\Net\BufferBuilder.cs (12)
23
if (count >
_buffer
.Length - _offset)
25
byte[] newBuffer = new byte[((
_buffer
.Length * 2) > (
_buffer
.Length + count)) ? (
_buffer
.Length * 2) : (
_buffer
.Length + count)];
26
Buffer.BlockCopy(
_buffer
, 0, newBuffer, 0, _offset);
34
_buffer
[_offset++] = value;
40
value.CopyTo(
_buffer
.AsSpan(_offset));
47
Buffer.BlockCopy(value, offset,
_buffer
, _offset, count);
72
Encoding.UTF8.GetBytes(value, offset, count,
_buffer
, _offset);
93
_buffer
[_offset + i] = (byte)c;
100
internal byte[] GetBuffer() =>
_buffer
;