public int Deserialize(byte[] ropBytes, int startIndex)
{
int index = startIndex;
this.RopId = ropBytes[index++];
this.InputHandleIndex = ropBytes[index++];
this.ReturnValue = (uint)BitConverter.ToInt32(ropBytes, index);
index += sizeof(uint);
this.WrittenSize = (ushort)BitConverter.ToInt16(ropBytes, index);
index += sizeof(ushort);
return index - startIndex;
}
}