()
return Target(pointer)
Make a new target to write to an area of memory.

        Make a new target that will write to memory. For example::

            target = pyvips.Target.new_to_memory()

        You can pass this target to (for example) :meth:`write_to_target`.

        After writing to the target, fetch the bytes from the target object
        with `target.get("blob")`.
Make a new target to write to an area of memory.
Make a new target to write to an area of memory .
def new_to_memory():
        """Make a new target to write to an area of memory.

        Make a new target that will write to memory. For example::

            target = pyvips.Target.new_to_memory()

        You can pass this target to (for example) :meth:`write_to_target`.

        After writing to the target, fetch the bytes from the target object
        with `target.get("blob")`.

        """

        # logger.debug('VipsTarget.new_to_memory:')

        pointer = vips_lib.vips_target_new_to_memory()
        if pointer == ffi.NULL:
            raise Error("can't create output target from memory")

        return Target(pointer)
def new_to_memory ( ) : # logger.debug('VipsTarget.new_to_memory:') pointer = vips_lib . vips_target_new_to_memory ( ) if pointer == ffi . NULL : raise Error ( "can't create output target from memory" ) return Target ( pointer )