Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetBuffer() [2/3]

void System.Net.Sockets.SocketAsyncEventArgs.SetBuffer ( int offset,
int count )
inlineinherited

Definition at line 431 of file SocketAsyncEventArgs.cs.

432 {
434 try
435 {
436 if (!_buffer.Equals(default(Memory<byte>)))
437 {
438 if ((uint)offset > _buffer.Length)
439 {
440 throw new ArgumentOutOfRangeException("offset");
441 }
442 if ((uint)count > _buffer.Length - offset)
443 {
444 throw new ArgumentOutOfRangeException("count");
445 }
447 {
449 }
450 _offset = offset;
451 _count = count;
452 }
453 }
454 finally
455 {
456 Complete();
457 }
458 }
static string InvalidOperation_BufferNotExplicitArray
Definition SR.cs:104
Definition SR.cs:7
override bool Equals([NotNullWhen(true)] object? obj)
Definition Memory.cs:255

References System.Net.Sockets.SocketAsyncEventArgs._buffer, System.Net.Sockets.SocketAsyncEventArgs._bufferIsExplicitArray, System.Net.Sockets.SocketAsyncEventArgs._count, System.Net.Sockets.SocketAsyncEventArgs._offset, System.Net.Sockets.SocketAsyncEventArgs.Complete(), System.count, System.Memory< T >.Equals(), System.SR.InvalidOperation_BufferNotExplicitArray, System.Memory< T >.Length, System.offset, and System.Net.Sockets.SocketAsyncEventArgs.StartConfiguring().