Data Transformation Engine Type Designer Reference Guide
Chapter 8 - Components Component Attributes
The 10 indicates the size of the following component.
Some important points about using the sized attribute are:
♦ The component with the sized attribute must be defined as an unsigned
integer.
♦ If a binary byte stream item does not have a fixed size, the component
preceding it must specify its size and the sized attribute must be used on that
component.
The size of a component is the number of bytes from the beginning of that
component, up to and including the end of the component. If a component has a
series range (such as [1:3]), the size includes all of the members in the series of
that component. If a delimiter separates each member of that series, the
delimiters must be included in the size. Also, if release characters appear in the
component, they must be included in the size.
The size does not include delimiters that separate one component type from the
next.
Include Self in Size
If the value of the component with the sized attribute includes the size of the
component, choose Include Self in Size from the Component menu. For
example, suppose the component with the sized attribute has a length of seven
bytes. The value of the component with the sized attribute would be seven. So, its
data would be one byte long, to hold the character seven. If its value includes the
length of itself, its value would be 7 + 1 = 8.
For example:
Sized component is: 7 bytes
+ 1 byte
(the length of the character 7)
If Include Self in Size is selected: 8 bytes