Function quickjs_runtime::quickjs_utils::typedarrays::new_uint8_array_q
source · [−]pub fn new_uint8_array_q(
q_ctx: &QuickJsRealmAdapter,
buf: Vec<u8>
) -> Result<JSValueRef, JsError>
Expand description
create a new TypedArray with a buffer, the buffer is consumed and can be reclaimed later by calling detach_array_buffer_buffer_q