def get_resource_address(self,type,index): """Retrieves the address of a resource element in a Python capsule. The returned object should never be directly modified.""" if not self.resource: raise GEMError("A resource has not yet be loaded") return _gem.rsrc_gaddr(type, index)
def get_resource_item(self,type,index): """Returns a capsule containing a resource item""" return _gem.rsrc_gaddr(type,index)