GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
DTDL
Comments, Preprocessor
Definitions
Data types
Namespaces
Restrictions
DADL
Setup

Data types

The following list shows all the data types that can be used in DTDL.

Data types

TypeDescription
int88 bit signed integer
uint88 bit unsigned integer
int1616 bit signed integer
uint1616 bit unsigned integer
int3232 bit signed integer
uint3232 bit unsigned integer
int6464 bit signed integer
uint6464 bit unsigned integer
int128128 bit signed integer
uint128128 bit unsigned integer
int256256 bit signed integer
uint256256 bit unsigned integer
float32 bit float
double64 bit float
char1 byte character
wcharUTF-16 (LE) character
datetimeFILETIME
string1 byte character string
wstringUTF-16 (LE) string
guidGUID
bsob(size)binary small object of size 1 to 127 bytes
objectobject (an object id or a reference)

Arrays

Every data type including structs (but not lists) can be used in an array. In classes, arrays of variable sizes can be used. In structs and lists, fixed-sized arrays can be used.
Examples:
wstring[] variableSize_StringArray;
uint16[]  variableSize_Uint16Array;

int32[3]  fixedSize_Int32Array;
© 2022 Mobiland AG