Add on_ready(), get_min_io_size(), get_max_atomic_write_size() to the node.js binding

This commit is contained in:
Vitaliy Filippov
2025-02-06 01:35:48 +03:00
parent 069808dfce
commit 6fd831a299
5 changed files with 69 additions and 3 deletions
+3
View File
@@ -16,6 +16,9 @@ NAN_MODULE_INIT(InitAddon)
Nan::SetPrototypeMethod(tpl, "write", NodeVitastor::Write);
Nan::SetPrototypeMethod(tpl, "sync", NodeVitastor::Sync);
Nan::SetPrototypeMethod(tpl, "read_bitmap", NodeVitastor::ReadBitmap);
Nan::SetPrototypeMethod(tpl, "on_ready", NodeVitastor::OnReady);
Nan::SetPrototypeMethod(tpl, "get_min_io_size", NodeVitastor::GetMinIoSize);
Nan::SetPrototypeMethod(tpl, "get_max_atomic_write_size", NodeVitastor::GetMaxAtomicWriteSize);
//Nan::SetPrototypeMethod(tpl, "destroy", NodeVitastor::Destroy);
Nan::Set(target, Nan::New("Client").ToLocalChecked(), Nan::GetFunction(tpl).ToLocalChecked());