File: string_array.yaml

package info (click to toggle)
dtfabric 20240211-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 868 kB
  • sloc: python: 5,785; sh: 24; makefile: 19
file content (45 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# dtFabric format specification.
---
name: char
type: integer
attributes:
  format: signed
  size: 1
  units: bytes
---
name: uint32
type: integer
attributes:
  format: signed
  size: 4
  units: bytes
---
name: cstring
type: string
encoding: ascii
element_data_type: char
elements_terminator: "\x00"
---
name: string_array
type: structure
attributes:
  byte_order: little-endian
members:
- name: number_of_strings
  data_type: uint32
- name: strings
  type: sequence
  element_data_type: cstring
  number_of_elements: string_array.number_of_strings
---
name: string_array_with_size
type: structure
attributes:
  byte_order: little-endian
members:
- name: strings_data_size
  data_type: uint32
- name: strings
  type: sequence
  element_data_type: cstring
  elements_data_size: string_array_with_size.strings_data_size