@nxtedition/rocksdb 12.2.2 → 12.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.cc
CHANGED
|
@@ -496,7 +496,7 @@ class Iterator final : public BaseIterator {
|
|
|
496
496
|
NAPI_STATUS_THROWS(GetProperty(env, options, "adaptiveReadahead", readOptions.adaptive_readahead));
|
|
497
497
|
|
|
498
498
|
readOptions.readahead_size = 0;
|
|
499
|
-
NAPI_STATUS_THROWS(GetProperty(env, options, "readaheadSize", readOptions.
|
|
499
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "readaheadSize", readOptions.readahead_size));
|
|
500
500
|
|
|
501
501
|
readOptions.auto_readahead_size = true;
|
|
502
502
|
NAPI_STATUS_THROWS(GetProperty(env, options, "autoReadaheadSize", readOptions.auto_readahead_size));
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/util.h
CHANGED
|
@@ -202,22 +202,45 @@ static napi_status GetValue(napi_env env, napi_value value, bool& result) {
|
|
|
202
202
|
return napi_get_value_bool(env, value, &result);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
static napi_status GetValue(napi_env env, napi_value value,
|
|
206
|
-
|
|
205
|
+
static napi_status GetValue(napi_env env, napi_value value, int& result) {
|
|
206
|
+
int64_t result2;
|
|
207
|
+
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
208
|
+
result = static_cast<int>(result2);
|
|
209
|
+
return napi_ok;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
static napi_status GetValue(napi_env env, napi_value value,
|
|
210
|
-
|
|
212
|
+
static napi_status GetValue(napi_env env, napi_value value, long& result) {
|
|
213
|
+
int64_t result2;
|
|
214
|
+
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
215
|
+
result = static_cast<long>(result2);
|
|
216
|
+
return napi_ok;
|
|
211
217
|
}
|
|
212
218
|
|
|
213
|
-
static napi_status GetValue(napi_env env, napi_value value,
|
|
214
|
-
|
|
219
|
+
static napi_status GetValue(napi_env env, napi_value value, long long& result) {
|
|
220
|
+
int64_t result2;
|
|
221
|
+
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
222
|
+
result = static_cast<long long>(result2);
|
|
223
|
+
return napi_ok;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static napi_status GetValue(napi_env env, napi_value value, unsigned int& result) {
|
|
227
|
+
int64_t result2;
|
|
228
|
+
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
229
|
+
result = static_cast<unsigned int>(result2);
|
|
230
|
+
return napi_ok;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
static napi_status GetValue(napi_env env, napi_value value, unsigned long& result) {
|
|
234
|
+
int64_t result2;
|
|
235
|
+
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
236
|
+
result = static_cast<unsigned long>(result2);
|
|
237
|
+
return napi_ok;
|
|
215
238
|
}
|
|
216
239
|
|
|
217
|
-
static napi_status GetValue(napi_env env, napi_value value,
|
|
240
|
+
static napi_status GetValue(napi_env env, napi_value value, unsigned long long& result) {
|
|
218
241
|
int64_t result2;
|
|
219
242
|
NAPI_STATUS_RETURN(napi_get_value_int64(env, value, &result2));
|
|
220
|
-
result = static_cast<
|
|
243
|
+
result = static_cast<unsigned long long>(result2);
|
|
221
244
|
return napi_ok;
|
|
222
245
|
}
|
|
223
246
|
|
|
Binary file
|