script::dom::bindings::buffer_source

Function construct_typed_array

Source
fn construct_typed_array(
    cx: JSContext,
    name_type: &Type,
    buffer_source: &HeapBufferSource<ArrayBufferU8>,
    byte_offset: usize,
    byte_length: i64,
) -> Fallible<HeapBufferSource<ArrayBufferViewU8>>
Expand description

Helper function to construct different TypedArray views