code: def _make_padding(
              self, members, padding_nb, offset, length, prev_member=None):
          
          name = 'PADDING_%d' % padding_nb
          padding_nb += 1
          log.debug("_make_padding: for %d bits", length)
          if (length % 8) != 0 or (prev_member is not None and prev_member.is_bitfield):
              # add a padding to align with the bitfield type
              # then multiple bytes if required.
              # pad_length = (length % 8)
              typename = prev_member.type.name
              padding = typedesc.Field(name,
                                       typedesc.FundamentalType(typename, 1, 1),
                                       # offset, pad_length, is_bitfield=True)
                                       offset, length, is_bitfield=True, is_padding=True)
              members.append(padding)
              # check for multiple bytes
              # if (length//8) > 0:
              #    padding_nb = self._make_padding(members, padding_nb, offset+pad_length,
              #                            (length//8)*8, prev_member=padding)
              return padding_nb
          elif length > 8:
              pad_bytes = length // 8
              padding = typedesc.Field(name,
                                       typedesc.ArrayType(
                                           typedesc.FundamentalType(
                                               self.get_ctypes_name(TypeKind.CHAR_U), length, 1),
                                           pad_bytes),
                                       offset, length, is_padding=True)
              members.append(padding)
              return padding_nb
          # simple char padding
          padding = typedesc.Field(name,
                                   typedesc.FundamentalType(
                                       self.get_ctypes_name(
                                           TypeKind.CHAR_U),
                                       1,
                                       1),
                                   offset, length, is_padding=True)
          members.append(padding)
          return padding_nb
docs: Make padding Fields for a specifed size.