code: def get_size(self, value=None):
          
          if isinstance(value, type(self)):
              return value.get_size()
  
          return 2 + self.length
docs: Return struct size.
  
          Returns:
              int: Returns the struct size based on inner attributes.