MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / maa_rt_write_file

Function maa_rt_write_file

source/binding/NodeJS/src/apis/loader.cpp:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void maa_rt_write_file(std::string path, maajs::ArrayBufferType data)
92{
93 std::ofstream fout(path, std::ios_base::out | std::ios_base::binary);
94 fout.write(static_cast<char*>(data.Data()), data.ByteLength());
95}
96
97void maa_rt_exit(maajs::EnvType env, std::string result)
98{

Callers

nothing calls this directly

Calls 2

DataMethod · 0.80
ByteLengthMethod · 0.80

Tested by

no test coverage detected