arudradey/ml-cpu-storage / emsdk /upstream /emscripten /test /embind /test_optional_val_lib.cpp
arudradey's picture
download
raw
303 Bytes
#include <emscripten/val.h>
#include <optional>
#include <string>
// This file deliberately does NOT include <emscripten/bind.h>
class MyType {
public:
void RunCallback(emscripten::val callback);
};
void MyType::RunCallback(emscripten::val cb) {
cb(std::make_optional(std::string{"Hey"}));
}

Xet Storage Details

Size:
303 Bytes
·
Xet hash:
b6016323824409c19067064b87b5764fe448c3cead1ae22f0638d7f4d922f658

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.