syft.generic.pointers.string_pointer

Module Contents

class syft.generic.pointers.string_pointer.StringPointer(location: BaseWorker = None, id_at_location: Union[str, int] = None, owner: BaseWorker = None, id: Union[str, int] = None, garbage_collect_data: bool = True, tags: List[str] = None, description: str = None)

Bases: syft.generic.pointers.object_pointer.ObjectPointer

This class defines a pointer to a ‘String’ object that might live on a remote machine. In other words, it holds a pointer to a ‘String’ object owned by a possibly different worker (although it can also point to a String owned by the same worker’.

All String method are hooked to objects of this class, and calls to such methods are forwarded to the pointed-to String object.