code: def tostream(self, namedstruct, stream, skipprepack = False):
          '''
          Convert a NamedStruct to packed bytes, append the bytes to the stream
          
          :param namedstruct: a NamedStruct object of this type to pack.
          
          :param skipprepack: if True, the prepack stage is skipped.
          
          :param stream: a buffered stream
          
          :return: appended bytes size
          '''
          return namedstruct._tostream(stream, skipprepackf tostream(self, namedstruct, stream, skipprepack = False):
          '''
          Convert a NamedStruct to packed bytes, append the bytes to the stream
          
          :param namedstruct: a NamedStruct object of this type to pack.
          
          :param skipprepack: if True, the prepack stage is skipped.
          
          :param stream: a buffered stream
          
          :return: appended bytes size
          '''
          return namedstruct._tostream(stream, skipprepack)
docs: Convert a NamedStruct to packed bytes, append the bytes to the stream
          
          :param namedstruct: a NamedStruct object of this type to pack.
          
          :param skipprepack: if True, the prepack stage is skipped.
          
          :param stream: a buffered stream
          
          :return: appended bytes size