Skip to content

Field Padding

Raghavendra Balgi edited this page Apr 21, 2020 · 1 revision

Field Padding

(available from 0.7.1)

Padding can be set on fixed fields (yaml spec type only). The following padding types are supported -

  • LEADING_ZEROES
  • LEADING_SPACES
  • LEADING_F
  • TRAILING_ZEROES
  • TRAILING_SPACES
  • TRAILING_F

The encoding for the padding is derived from the DataEncoding on the field that it is applied to. The padding types are useful on the UI where it can help autofill large fields (like amount where a LEADING_ZEROES might come in handy)

Example

              - name: "Amount"
                id: 8
                type: Fixed
                size: 12
                data_encoding: ASCII
                padding: LEADING_ZEROES
                position: 4

As a special case, a TRAILING_F or LEADING_ZEROES can be applied on a Variable Special BCD field