File: structure_with_string.yaml

package info (click to toggle)
dtfabric 20251118-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: python: 5,787; sh: 25; makefile: 19
file content (28 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
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
# dtFabric format specification.
---
name: wchar16
type: integer
attributes:
  format: signed
  size: 2
  units: bytes
---
name: uint16
type: integer
attributes:
  format: unsigned
  size: 2
  units: bytes
---
name: utf16_string
type: structure
attributes:
  byte_order: little-endian
members:
- name: size
  data_type: uint16
- name: text
  type: string
  encoding: utf-16-le
  element_data_type: wchar16
  elements_data_size: utf16_string.size