How to compare two sets of ISFSArray for differences ?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

genar
Posts: 137
Joined: 13 Jul 2017, 11:49

How to compare two sets of ISFSArray for differences ?

Postby genar » 12 Feb 2018, 15:48

Good evening !

I am receiving data from my smartfoxserver instance in certain intervalls. I need to check the received ISFSArray for differences with my ISFSArray i received earlier. I hoped i could compare the bits or bytes. But the problem is that those values only change with the array length and not the array content.
Is there a way to compare two ISFSArray sets for differences ?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to compare two sets of ISFSArray for differences ?

Postby Lapo » 12 Feb 2018, 17:32

Hi,
the ISFSArray is an object so it's not byte data. You could traverse the two objects and compare every item. There isn't an easy way to do it because the array can also contain other nested arrays, objects etc...

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 73 guests