EDIT: I'm considering this question different from the potential duplicate because none of the answers on that one contain the approach I went with which is the BitConverter class. In case me marking this as not a duplicate gets rid of the potential duplicate question link here it is.
I'm wondering what the c# equivalent of this code is considering each element in the array is a byte and it's getting copied to an int.
byte offsetdata[sizeof(int)] = { 0,0,0,0 };
offsetdata[0] = m_Response[responseIndex++];
offsetdata[1] = m_Response[responseIndex++];
offsetdata[2] = m_Response[responseIndex++];
offsetdata[3] = m_Response[responseIndex++];
int offset = 0;
memcpy(&offset, offsetdata, sizeof offset);
m_ZOffset = offset;