Skip to content

JsSetIndexedPropertiesToExternalData

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Sets an object's indexed properties to external data. The external data will be used as back store for the object's indexed properties and accessed like a typed array.

Syntax

STDAPI_(JsErrorCode)
    JsSetIndexedPropertiesToExternalData(
    _In_ JsValueRef object,
    _In_ void* data,
    _In_ JsTypedArrayType arrayType,
    _In_ unsigned int elementLength);

Parameters

  • object: The object to operate on.
  • data: The external data to be used as back store for the object's indexed properties.
  • arrayType: The array element type in external data.
  • elementLength: The number of array elements in external data.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Clone this wiki locally