dict.message 917 Bytes
Newer Older
1 2
# Dict with different values

3
VALID_HEADER method_call
4
REQUIRED_FIELDS
5
ALIGN 8
6
END_LENGTH Header
7 8
START_LENGTH Body
TYPE DICT
9 10 11
LENGTH Dict
START_LENGTH Dict
STRING 'boolean'
12 13
TYPE BOOLEAN
BYTE 1
14
STRING 'int32'
15 16
TYPE INT32
INT32 0x12345678
17
STRING 'uint32'
18 19
TYPE UINT32
UINT32 0x8765432
20
STRING 'double'
21 22
TYPE DOUBLE
DOUBLE 3.141592653589
23
STRING 'string'
24 25
TYPE STRING
STRING 'This is a string'
26 27 28
STRING 'boolean_array'
TYPE ARRAY
TYPE BOOLEAN
29
BOOLEAN_ARRAY { true, false, false, true, false }
30 31 32
STRING 'int32_array'
TYPE ARRAY
TYPE INT32
33
INT32_ARRAY { 1, -2, 3, -4, 5, -6, 7, -8, 9, -10 }
34 35 36
STRING 'uint32_array'
TYPE ARRAY
TYPE UINT32
37
UINT32_ARRAY { 11, 12, 314, 1911, 57692, 1237, 2834 }
38 39 40
STRING 'double_array'
TYPE ARRAY
TYPE DOUBLE
41
DOUBLE_ARRAY { 0.1, 0.2, 3.1415926, 2.7183, 10.0, 9.99 }
42 43 44
STRING 'string_array'
TYPE ARRAY
TYPE STRING
45
STRING_ARRAY { 'Hello', 'This', 'Is', 'A', 'String', 'Array!' }
46
END_LENGTH Dict
47
END_LENGTH Body