File: structure_with_padding.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 (41 lines) | stat: -rw-r--r-- 712 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
# dtFabric format specification.
---
name: byte
type: integer
attributes:
  format: unsigned
  size: 1
  units: bytes
---
name: uint16
type: integer
attributes:
  format: unsigned
  size: 2
  units: bytes
---
name: structure_with_padding
type: structure
attributes:
  byte_order: little-endian
members:
- name: data_size
  data_type: uint16
- name: padding
  type: padding
  alignment_size: 8
---
name: structure_with_padding_and_stream
type: structure
attributes:
  byte_order: little-endian
members:
- name: data_size
  data_type: uint16
- name: data
  type: stream
  element_data_type: byte
  elements_data_size: structure_with_padding_and_stream.data_size
- name: padding
  type: padding
  alignment_size: 8