pub fn external<'a, C, T>(cx: &mut C, data: T) -> Handle<'a, JsBuffer>
    where
        C: Context<'a>,
        T: AsMut<[u8]> + Send,
    {
        let env = cx.env().to_raw();
        let value = unsafe { neon_runtime::buffer::new_external(env, data) };

        Handle::new_internal(JsBuffer(value))
    }
/// Construct a new `Buffer` from bytes allocated by Rust
Construct a new `Buffer` from bytes allocated by Rust
Construct a new ` Buffer ` from bytes allocated by Rust
pub fn external<'a, C, T>(cx: &mut C, data: T) -> Handle<'a, JsBuffer>
    where
        C: Context<'a>,
        T: AsMut<[u8]> + Send,
    {
        let env = cx.env().to_raw();
        let value = unsafe { neon_runtime::buffer::new_external(env, data) };
        Handle::new_internal(JsBuffer(value))
    }
pub fn external < ' a , C , T > ( cx : & mut C , data : T ) -> Handle < ' a , JsBuffer > where C : Context < ' a > , T : AsMut < [ u8 ] > + Send , { let env = cx . env ( ) . to_raw ( ) ; let value = unsafe { neon_runtime :: buffer :: new_external ( env , data ) } ; Handle :: new_internal ( JsBuffer ( value ) ) }
Construct a new `Buffer` from bytes allocated by Rust
Construct a new ` Buffer ` from bytes allocated by Rust
cx
&mut C
data
T