The offset and count parameters can't be negative numbers. The combination of the offset and count parameters must be in bounds of the data array in the buffer parameter.
This method sets the SocketAsyncEventArgs.Buffer property to the buffer parameter, the SocketAsyncEventArgs.Count property to the count parameter, and the SocketAsyncEventArgs.Offset property to the offset parameter.