Value.newTypedArray

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 javascriptcore.context.Context

a #JSCContext

type javascriptcore.types.TypedArrayType

the type of array elements

length size_t

number of elements in the array

Return Value

Type: javascriptcore.value.Value

a #JSCValue