Data Type Rules

A notable feature of CAR data types is that they are all self-descriptive.

How to use in CAR files In CAR files, developers can use CAR data type in accordance with the rules of CAR grammar, but they can not use C++ or other data types. The CAR data type is mainly used to define the types of the interface method parameters.

Please note that .car files do not support underlined data type forms, such as BufferOf_<>, StringBuf_<> etc.

How to use in C++ files In C++ files, developers can use both CAR data types and C++ data types as long as they meet the standard use of C++ syntax.

Please note that developers must use the Elastos namespace in both CAR files and C++ files.

The table below shows the rules about CAR Data Types when used as parameters of interface functions in .car files.

{| border="1" cellspacing="0" cellpadding="5" ! style="width:150px"|CAR ! style="width:150px"|Data Types ! style="width:500px"| Parameter data type rules
 * Base Types
 * Base Types
 * PVoid
 * Base Types
 * Class Types
 * StringBuf
 * Class Types
 * Class Types
 * MemoryBuf
 * Multiplex Types
 * Class Types
 * Class Types
 * StringBuf
 * Class Types
 * Class Types
 * MemoryBuf
 * Multiplex Types
 * Class Types
 * Class Types
 * MemoryBuf
 * Multiplex Types
 * Class Types
 * MemoryBuf
 * Multiplex Types
 * Class Types
 * Multiplex Types
 * Class Types
 * Class Types
 * Class Types
 * Class Types


 * Interface Types
 * IInterface
 * }
 * }
 * }

Back