forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
28
electron/node_modules/lzma-native/src/mt-options.cpp
generated
vendored
Normal file
28
electron/node_modules/lzma-native/src/mt-options.cpp
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#include "liblzma-node.hpp"
|
||||
|
||||
namespace lzma {
|
||||
|
||||
MTOptions::MTOptions(Value val) {
|
||||
Object opt = val.IsUndefined() || val.IsNull() ?
|
||||
Object::New(val.Env()) : val.ToObject();
|
||||
opts_.flags = 0;
|
||||
opts_.filters = nullptr;
|
||||
|
||||
opts_.block_size = Value(opt["blockSize"]).ToNumber().Int64Value();
|
||||
opts_.timeout = Value(opt["timeout"]).ToNumber().Uint32Value();
|
||||
opts_.preset = Value(opt["preset"]).ToNumber().Uint32Value();
|
||||
opts_.check = (lzma_check)Value(opt["check"]).ToNumber().Int32Value();
|
||||
opts_.threads = Value(opt["threads"]).ToNumber().Uint32Value();
|
||||
|
||||
if (opts_.threads == 0) {
|
||||
opts_.threads = lzma_cputhreads();
|
||||
}
|
||||
|
||||
Value filters = opt["filters"];
|
||||
if (filters.IsArray()) {
|
||||
filters_.reset(new FilterArray(filters));
|
||||
opts_.filters = filters_->array();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue