If there is less than a byte of bits to fill, then only those bits from fillByte will be used. So in your example, since bits 4-7 of the data are skipped due to alignment, they will be filled with bits 4-7 of the fillByte.
- Steve On 8/25/20 1:25 PM, Roger L Costello wrote: > Hi Folks, > > The DFDL specification says that value of fillByte is a single-byte character > or a single-byte DFDL entity. > > But, but, but, ... > > Suppose data item 1 is 4 bits and the next data item is aligned to the next > byte. > > There are 4 bits to fill between the data items. > > But the value of fillByte is, well, a single byte (8 bits). > > So, ............. is fillByte not the thing to use to fill the 4 bits? > > /Roger >