Buckets:
| class Foo { | |
| std::string mName; | |
| public: | |
| Foo(std::string name) : mName(name) {} | |
| ~Foo() { std::cout << mName << " destructed" << std::endl; } | |
| }; | |
| std::shared_ptr<Foo> foo() { | |
| return std::make_shared<Foo>("Constructed from C++"); | |
| } | |
| Foo* pFoo() { return new Foo("Foo*"); } | |
| using namespace emscripten; | |
| EMSCRIPTEN_BINDINGS(Marci) { | |
| class_<Foo>("Foo").smart_ptr_constructor<std::shared_ptr<Foo>>( | |
| "Foo", &std::make_shared<Foo, std::string>); | |
| function("foo", foo); | |
| function("pFoo", pFoo, allow_raw_pointers()); | |
| } | |
Xet Storage Details
- Size:
- 595 Bytes
- Xet hash:
- 62e9891523f9d715640340e9806292381a7b5f8d26fda798bbc436cf79f27333
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.