Basic data types
Development version of Qube uses own data-types for compatibility with next versions. These types are implemented as follows :
| Data-types |
Number
of Bits
|
Description
|
|
l_ptr l_bool |
32 32 |
Pointer to non-defined type. The same to (void*). Boolean value. 2 values are available (TRUE and FALSE or true and false ) |
| l_char |
8
|
This data-type describe one character and the range of available values is from 128 to 127 |
| l_byte |
8
|
This data-type describe one byte and the range of available values is from 0 to 255 |
| l_int |
32
|
Range of avaialable values is from 2,147,483,648 to 2,147,483,647 |
| l_long |
32
|
Range of avaialable values is from 2,147,483,648 to 2,147,483,647 |
| l_rect |
32
|
This data-type is used for graphics coordinations |
| l_relrect |
64
|
Used for relative graphics coordinations |
| l_fixed |
32
|
Used for angles in fixed metrics |
| l_time |
32
|
Used as time format that covers time/date |
| l_color |
32
|
This data-types is used when it's important to define value as a color. |
| l_word |
32
|
Range of avaialable values is from 0 to 4,294,967,295 |
| l_dword |
32
|
Range of avaialable values is from 0 to 4,294,967,295 |
| l_ushort |
16
|
Range of avaialable values is from 0 to 65,535 |
| l_big |
64
|
Used for big non-comma values as timestamp is |
| l_timestamp |
64
|
Non-comma data-type that covers time stamps in milliseconds. |
| l_short |
16
|
Range of avaialable values is from 32,768 to 32,767 |
| l_text |
32
|
Pointer to null-terminating string. The string is an array of chars (l_char*), where the end character is null-terminating '\0'. |
| l_process |
32
|
Defines the process |
| l_double |
64
|
Defines range of comma values, where the range is from 1.7E +/- 308 (15 digits) |
| l_handle |
32
|
Keeps the handle of some object |
| l_float |
32
|
Flotaing point numbers where the range ov available values is 3.4E +/- 38 (7 digits) |
| l_size_t |
32
|
Defines size of some object or data type |
| l_func |
32
|
Pointer to function "l_int function()" |
| l_bool |
32
|
Boolean value. 2 values are available (TRUE and FALSE or true and false ) |
Each data-type can be a constant data-type by using "cl_" prefix instead of "l_"