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 Buffer property to the buffer parameter, the Count property to the count parameter, and the Offset property to the offset parameter.