SFSArray
Namespace: Sfs2X.Entities.DataAssembly: SmartFox2 (in SmartFox2.dll) Version: 0.9.14.0
Syntax
| C# |
|---|
public class SFSArray : ISFSArray, ICollection, IEnumerable |
Remarks
SFSArray is used from server and client side to exchange data. It can be thought of a specialized Array/List object that can contain any type of data. The advantage of using SFSArray is that you can fine tune the way your data will be transmitted over the network.
For instance, a number like 100 can be transmitted as a normal integer (which takes 32 bits) but also a short (16 bit) or even a byte (8 bit)
SFSArray supports many primitive data types and related arrays of primitives. It also allows to serialize class instances and rebuild them on the Java side. This is explained in greater detail in a separate document.