JSCValue* jsc_value_new_typed_array ( JSCContext* context, JSCTypedArrayType type, gsize length )
Create a new typed array containing a given amount of elements.
JSCValue referencing a new typed array with space for
elements of a given
type. As all typed arrays must have an associated
ArrayBuffer, a new one of suitable size will be allocated to store
the elements, which will be initialized to zero.
type must not be
Available since: 2.38
|The caller of the function takes ownership of the data, and is responsible for freeing it.|