4 writes to _buffer
System.Net.Sockets (4)
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
359
_buffer
= source._buffer;
378
_buffer
= default;
396
_buffer
= buffer;
418
_buffer
= buffer;
17 references to _buffer
System.Net.Sockets (17)
System\Net\Sockets\SocketAsyncEventArgs.cs (8)
123
bool success = MemoryMarshal.TryGetArray(
_buffer
, out ArraySegment<byte> arraySegment);
132
public Memory<byte> MemoryBuffer =>
_buffer
;
157
if (!
_buffer
.Equals(default))
335
if (!
_buffer
.Equals(default))
337
ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)
_buffer
.Length, nameof(offset));
338
ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (long)(
_buffer
.Length - offset), nameof(count));
359
_buffer = source.
_buffer
;
582
bool userSuppliedBuffer = !
_buffer
.Equals(default);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (9)
48
if (!
_buffer
.Equals(default))
76
SocketError socketError = handle.AsyncContext.ConnectAsync(_socketAddress!.Buffer, ConnectCompletionCallback,
_buffer
.Slice(_offset, _count), out int sentBytes);
131
errorCode = handle.AsyncContext.ReceiveAsync(
_buffer
.Slice(_offset, _count), _socketFlags, out bytesReceived, TransferCompletionCallback, cancellationToken);
136
errorCode = handle.AsyncContext.ReceiveAsync(
_buffer
.Slice(_offset, _count), _socketFlags, out bytesReceived, out flags, TransferCompletionCallback, cancellationToken);
164
errorCode = handle.AsyncContext.ReceiveFromAsync(
_buffer
.Slice(_offset, _count), _socketFlags, _socketAddress!.Buffer, out socketAddressLen, out bytesReceived, out flags, TransferCompletionCallback, cancellationToken);
209
SocketError socketError = handle.AsyncContext.ReceiveMessageFromAsync(
_buffer
.Slice(_offset, _count), _bufferListInternal, _socketFlags, _socketAddress.Buffer, out socketAddressSize, isIPv4, isIPv6, out bytesReceived, out receivedFlags, out ipPacketInformation, ReceiveMessageFromCompletionCallback, cancellationToken);
228
errorCode = handle.AsyncContext.SendAsync(
_buffer
, _offset, _count, _socketFlags, out bytesSent, TransferCompletionCallback, cancellationToken);
312
errorCode = handle.AsyncContext.SendToAsync(
_buffer
, _offset, _count, _socketFlags, _socketAddress!.Buffer, ref bytesSent, TransferCompletionCallback, cancellationToken);
337
NetEventSource.DumpBuffer(this,
_buffer
, _offset, size);