code: def _update_length(self):
          
          action_length = 4 + len(self.field.pack())
          overflow = action_length % 8
          self.length = action_length
          if overflow:
              self.length = action_length + 8 - overflow
docs: Update the length field of the struct.