CommsDSL Specification
  • Introduction
  • Version
  • Schema Definition
  • Multiple Files
  • Namespaces
  • Platforms
  • References
  • Properties
  • Numeric Values
  • Boolean Values
  • Names
  • Protocol Versioning
  • Schema
  • Fields
    • Common Properties of Fields
    • enum Field
    • int Field
    • set Field
    • bitfield Field
    • bundle Field
    • string Field
    • data Field
    • list Field
    • float Field
    • ref Field
    • optional Field
    • variant Field
    • Referencing Values of Other Fields
  • Messages
  • Interfaces
  • Aliases
  • Frames
    • Common Properties of Layers
    • payload Layer
    • id Layer
    • size Layer
    • sync Layer
    • checksum Layer
    • value Layer
    • custom Layer
  • Protocol Versioning Summary
  • Appendix
    • Properties of schema
    • Common Properties of Fields
    • Properties of enum Field
    • Properties of int Field
    • Properties of set Field
    • Properties of bitfield Field
    • Properties of bundle Field
    • Properties of string Field
    • Properties of data Field
    • Properties of list Field
    • Properties of float Field
    • Properties of ref Field
    • Properties of optional Field
    • Properties of variant Field
    • Units
    • Properties of message
    • Properties of interface
    • Properties of alias
    • Properties of frame
    • Common Properties of Layers
    • Properties of checksum Layer
    • Properties of value Layer
    • Properties of custom Layer
Powered by GitBook
On this page

Was this helpful?

  1. Appendix

Properties of list Field

PreviousProperties of data FieldNextProperties of float Field

Last updated 5 years ago

Was this helpful?

The <list> field has all the properties as well as ones listed below. Refer to chapter for detailed description.

Property Name

Allowed type / value

DSL Version

Required

Default Value

Description

element

or

1

yes

Element of the field.

count

1

no

0

Fixed number of elements in the list. Cannot be used tegether with lengthPrefix or countPrefix.

countPrefix

or

1

no

Prefix field containing number of elements in the list. Cannot be used tegether with count or lengthPrefix.

lengthPrefix

or

1

no

Prefix field containing serialization length of the list. Cannot be used tegether with count or countPrefix.

elemLengthPrefix

1

no

Prefix field containing serialization length of the list element.

elemFixedLength

1

no

false

Indication of whether list has and will allways have fixed length element, so elemLengthPrefix prefixes only the first element and not the rest.

common
<list> Field
field
reference
unsigned
field
reference
field
reference
field
bool