neon_runtime/nan/buffer.rs
1//! Facilities for working with `node::Buffer`s.
2
3/// Mutates the `out` argument provided to refer to a newly created and zero-filled `node::Buffer` object.
4/// Returns `false` if the value couldn't be created.
5pub use neon_sys::Neon_Buffer_New as new;
6
7/// Mutates the `out` argument provided to refer to a newly created `node::Buffer` object.
8/// Returns `false` if the value couldn't be created.
9pub use neon_sys::Neon_Buffer_Uninitialized as uninitialized;
10
11/// Mutates the `base_out` and `size_out` arguments to access the data of a `node::Buffer` object.
12pub use neon_sys::Neon_Buffer_Data as data;