Value.newTypedArray
javascriptcore.value.Value newTypedArray(javascriptcore.context.Context context, javascriptcore.types.TypedArrayType type, size_t length)Create a new typed array containing a given amount of elements.
Create a #JSCValue referencing a new typed array with space for length 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.
The type must not be JSC_TYPED_ARRAY_NONE.
Parameters
context | a #JSCContext |
type | the type of array elements |
length | number of elements in the array |
Returns
a #JSCValue