We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b945eb commit cfbcfc0Copy full SHA for cfbcfc0
src/Encoder.cpp
@@ -108,8 +108,8 @@ namespace nbs {
108
109
auto path = info[0].As<Napi::String>().Utf8Value();
110
111
- outputFile = std::make_unique<std::ofstream>(path);
112
- indexFile = std::make_unique<zstr::ofstream>(path + ".idx");
+ outputFile = std::make_unique<std::ofstream>(path, std::ios_base::binary);
+ indexFile = std::make_unique<zstr::ofstream>(path + ".idx", std::ios_base::binary);
113
}
114
115
Napi::Value Encoder::Write(const Napi::CallbackInfo& info) {
0 commit comments