We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header File
R::Owned
&&
Code:
X00X5Bresource_dropX5D
auto ptr = T::remove_resource(idx); assert(ptr.has_value()); T::Dtor(*ptr);
return result0.release()->get_handle();
(**T::lookup_resource(arg0))
auto objptr = T::remove_resource(arg0); assert(objptr.has_value()); func(T::Owned(*objptr));
extern "C" int32_t X5BexportX5DfooX3AfooX2FresourcesX00X5Bresource_newX5Dr(uint8_t* rep) { return exports::foo::foo::resources::R::store_resource(std::move(rep)); } extern "C" void X5BexportX5DfooX3AfooX2FresourcesX00X5Bresource_dropX5Dr(int32_t idx) { exports::foo::foo::resources::R::remove_resource(idx); }
Dtor
if (this->rep) X5BdtorX5Dr(this->rep);
this->index = ret; this->rep = *lookup_resource(ret);
wit::ResourceExportBase
.get()
auto rep = o.take_rep(); R::remove_resource(o.get_handle()); consume(rep);
ResourceExportBase
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Header File
R::Owned
R::Owned
&&
argsCode:
X00X5Bresource_dropX5D
return result0.release()->get_handle();
(**T::lookup_resource(arg0))
Dtor
should become a normal dtor withif (this->rep) X5BdtorX5Dr(this->rep);
this->index = ret; this->rep = *lookup_resource(ret);
wit::ResourceExportBase
.get()
and use get_rep()&&
ResourceExportBase
based move ctorsThe text was updated successfully, but these errors were encountered: