/// get TypeArray info
/// <https://nodejs.org/api/n-api.html#n_api_napi_get_typedarray_info>
///
/// ***Warning***: Use caution while using this API since the underlying data buffer is managed by the VM.


Warning***: Use caution while using this API since the underlying data buffer is managed by the VM.
Warning *** : Use caution while using this API since the underlying data buffer is managed by the VM .
pub fn into_value(self) -> Result<JsTypedArrayValue> {
    let mut typedarray_type = 0;
    let mut len = 0;
    let mut data = ptr::null_mut();
    let mut arraybuffer_value = ptr::null_mut();
    let mut byte_offset = 0;
    check_status!(unsafe {
      sys::napi_get_typedarray_info(
        self.0.env,
        self.0.value,
        &mut typedarray_type,
        &mut len,
        &mut data,
        &mut arraybuffer_value,
        &mut byte_offset,
      )
    })?;
    Ok(JsTypedArrayValue {
      data,
      length: len,
      byte_offset,
      typedarray_type: typedarray_type.into(),
      arraybuffer: unsafe { JsArrayBuffer::from_raw_unchecked(self.0.env, arraybuffer_value) },
    })
  }
pub fn into_value ( self ) -> Result < JsTypedArrayValue > { let mut typedarray_type = 0 ; let mut len = 0 ; let mut data = ptr :: null_mut ( ) ; let mut arraybuffer_value = ptr :: null_mut ( ) ; let mut byte_offset = 0 ; check_status ! ( unsafe { sys napi_get_typedarray_info ( self 0 env self 0 value mut typedarray_type mut len mut data mut arraybuffer_value mut byte_offset ) } ) ? ; Ok ( JsTypedArrayValue { data , length : len , byte_offset , typedarray_type : typedarray_type . into ( ) , arraybuffer : unsafe { JsArrayBuffer :: from_raw_unchecked ( self . 0 . env , arraybuffer_value ) } , } ) }
get TypeArray info
<https://nodejs.org/api/n-api.html#n_api_napi_get_typedarray_info>
get TypeArray info <https : // nodejs . org / api / n - api . html#n_api_napi_get_typedarray_info >
self