Repository: dotnet/runtime
File: src/libraries/System.Net.Sockets/src/System/Net/Sockets/DynamicWinsockMethods.cs (C#)

Code before:
        }
    }

    internal unsafe delegate bool AcceptExDelegate(
                SafeSocketHandle listenSocketHandle,
                SafeSocketHandle acceptSocketHandle,
                IntPtr buffer,
                int len,
                int localAddressLength,
                int remoteAddressLength,
                out int bytesReceived,
                NativeOverlapped* overlapped);

    internal delegate void GetAcceptExSockaddrsDelegate(
                IntPtr buffer,
                int receiveDataLength,
                int localAddressLength,
                int remoteAddressLength,
                out IntPtr localSocketAddress,
                out int localSocketAddressLength,
                out IntPtr remoteSocketAddress,
                out int remoteSocketAddressLength);

    internal unsafe delegate bool ConnectExDelegate(
                SafeSocketHandle socketHandle,
                Span<byte> socketAddress,
                IntPtr buffer,
                int dataLength,
                out int bytesSent,
                NativeOverlapped* overlapped);

    internal unsafe delegate bool DisconnectExDelegate(
                SafeSocketHandle socketHandle,
                NativeOverlapped* overlapped,
                int flags,
                int reserved);

    internal unsafe delegate SocketError WSARecvMsgDelegate(
                SafeSocketHandle socketHandle,
                IntPtr msg,
                out int bytesTransferred,
                NativeOverlapped* overlapped,
                IntPtr completionRoutine);

    internal unsafe delegate bool TransmitPacketsDelegate(
                SafeSocketHandle socketHandle,
                IntPtr packetArray,
                int elementCount,
                int sendSize,
                NativeOverlapped* overlapped,
                TransmitFileOptions flags);

Review comment (suggestion):
```suggestion
                ReadOnlySpan<byte> socketAddress,
```

Code after:
        }
    }

    internal unsafe delegate bool AcceptExDelegate(
                SafeSocketHandle listenSocketHandle,
                SafeSocketHandle acceptSocketHandle,
                IntPtr buffer,
                int len,
                int localAddressLength,
                int remoteAddressLength,
                out int bytesReceived,
                NativeOverlapped* overlapped);

    internal delegate void GetAcceptExSockaddrsDelegate(
                IntPtr buffer,
                int receiveDataLength,
                int localAddressLength,
                int remoteAddressLength,
                out IntPtr localSocketAddress,
                out int localSocketAddressLength,
                out IntPtr remoteSocketAddress,
                out int remoteSocketAddressLength);

    internal unsafe delegate bool ConnectExDelegate(
                SafeSocketHandle socketHandle,
                ReadOnlySpan<byte> socketAddress,
                IntPtr buffer,
                int dataLength,
                out int bytesSent,
                NativeOverlapped* overlapped);

    internal unsafe delegate bool DisconnectExDelegate(
                SafeSocketHandle socketHandle,
                NativeOverlapped* overlapped,
                int flags,
                int reserved);

    internal unsafe delegate SocketError WSARecvMsgDelegate(
                SafeSocketHandle socketHandle,
                IntPtr msg,
                out int bytesTransferred,
                NativeOverlapped* overlapped,
                IntPtr completionRoutine);

    internal unsafe delegate bool TransmitPacketsDelegate(
                SafeSocketHandle socketHandle,
                IntPtr packetArray,
                int elementCount,
                int sendSize,
                NativeOverlapped* overlapped,
                TransmitFileOptions flags);