System\Net\Sockets\UDPClient.cs (8)
372return _clientSocket.BeginReceiveFrom(_buffer, 0, MaxUDPSize, SocketFlags.None, ref tempRemoteEP, requestCallback, state);
390return _buffer.AsSpan(0, received).ToArray();
620new ArraySegment<byte>(_buffer, 0, MaxUDPSize),
627byte[] buffer = _buffer.AsSpan(0, result.ReceivedBytes).ToArray();
646_buffer,
653byte[] buffer = _buffer.AsSpan(0, result.ReceivedBytes).ToArray();
844int received = Client.ReceiveFrom(_buffer, MaxUDPSize, 0, ref tempRemoteEP);
849return _buffer.AsSpan(0, received).ToArray();