Control Data TypesΒΆ

The methods and events of control classes defined in AES70 use a series of data types. The data types used are both basic integral types, enums as well as structs and container types. The basic types are represented as shown in the following table:

AES70 Type

JavaScript type

OcaBoolean

boolean

OcaInt8

number

OcaInt16

number

OcaInt32

number

OcaInt64

number or BigInt

OcaUint8

number

OcaUint16

number

OcaUint32

number

OcaUint64

number or BigInt

OcaFloat32

number

OcaFloat64

number

OcaString

string

OcaBitstring

boolean[]

OcaBlob

Uint8Array

OcaList <Type>

Type[]

OcaMap <KeyType, ValueType>

Map<KeyType,ValueType>

OcaMultiMap <KeyType, ValueType>

Map<KeyType,ValueType[]>

Enums are represented as subclasses of Enum(). Structs are implemented as classes and are listed below.