Module safebuffer

Source

Structsยง

SafeArrayBuffer
Rust representation of Nodejs ArrayBuffer In regular cases can be used ArrayBuffer and it will be more effective. But in the case of usage node_bindgen in electron context, ArrayBuffer will not work because of restrictions from electron side. SafeArrayBuffer can be used as an effective workaround. Theoretically, usage of SafeArrayBuffer might give a very small performance degradation compared to ArrayBuffer, but it can be ignored in most cases.