SFSDataType

Data types supported by SFSObject and SFSArray classes.

Members

(static, constant) BOOL :number

Boolean.
Type:
  • number

(static, constant) BOOL_ARRAY :number

Array of booleans.
Type:
  • number

(static, constant) BYTE :number

Byte, signed 8 bits.
Type:
  • number

(static, constant) BYTE_ARRAY :number

Array of bytes.
Type:
  • number

(static, constant) DOUBLE :number

Double precision decimal, signed 64 bits.
Type:
  • number

(static, constant) DOUBLE_ARRAY :number

Array of double precision decimals.
Type:
  • number

(static, constant) FLOAT :number

Floating point decimal, signed 32 bits.
Type:
  • number

(static, constant) FLOAT_ARRAY :number

Array of floating point decimals.
Type:
  • number

(static, constant) INT :number

Integer, signed 32 bits.
Type:
  • number

(static, constant) INT_ARRAY :number

Array of integers.
Type:
  • number

(static, constant) LONG :number

Long integer, signed 64 bits.

IMPORTANT: in this API, long integers are represented by BigInt values, but SmartFoxServer supports long integers up to 64-bit signed. Make sure to take this limitation (and others, see BigInt documentation) into account when dealing with long integers.

Type:
  • number

(static, constant) LONG_ARRAY :number

Array of long integers.

IMPORTANT: in this API, long integers are represented by BigInt values, but SmartFoxServer supports long integers up to 64-bit signed. Make sure to take this limitation (and others, see BigInt documentation) into account when dealing with long integers.

Type:
  • number

(static, constant) NULL :number

Null value.
Type:
  • number

(static, constant) SFS_ARRAY :number

SFSArray.
Type:
  • number

(static, constant) SFS_OBJECT :number

SFSObject.
Type:
  • number

(static, constant) SHORT :number

Short integer, signed 16 bits.
Type:
  • number

(static, constant) SHORT_ARRAY :number

Array of short integers.
Type:
  • number

(static, constant) SHORT_STRING :number

UTF-8 encoded string, with length up to 255 bytes.
Type:
  • number

(static, constant) SHORT_STRING_ARRAY :number

Array of UTF-8 strings, with length up to 255 bytes each.
Type:
  • number

(static, constant) STRING :number

UTF-8 encoded string, with length up to 32767 bytes.
Type:
  • number

(static, constant) STRING_ARRAY :number

Array of UTF-8 strings, with length up to 32767 bytes each.
Type:
  • number

(static, constant) TEXT :number

UTF-8 encoded string, with length up to 2 GBytes.
Type:
  • number

(static, constant) VECTOR2 :number

SFSVector2.
Type:
  • number

(static, constant) VECTOR2_ARRAY :number

Array of SFSVector2 objects.
Type:
  • number

(static, constant) VECTOR3 :number

SFSVector3.
Type:
  • number

(static, constant) VECTOR3_ARRAY :number

Array of SFSVector3 objects.
Type:
  • number