docs: def packto(self, namedstruct, stream):
          """
          Pack a struct to a stream
          """
          if hasattr(namedstruct, self.name):
              return _tostream(self.basetypeparser, getattr(namedstruct, self.name), stream, True)
          else:
              return 0