Share via


JsGetTypedArrayInfo Function

Obtains frequently used properties of a typed array.

Syntax

STDAPI_(JsErrorCode) JsGetTypedArrayInfo(  
  _In_ JsValueRef typedArray,  
  _Out_opt_ JsTypedArrayType *arrayType,  
  _Out_opt_ JsValueRef *arrayBuffer,  
  _Out_opt_ unsigned int *byteOffset,  
  _Out_opt_ unsigned int *byteLength  
);  
  

Parameters

typedArray
The typed array instance.

arrayType
The type of the array.

arrayBuffer
The ArrayBuffer backstore of the array.

byteOffset
The offset in bytes from the start of arrayBuffer referenced by the array.

byteLength
The number of bytes in the array.

Return Value

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

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)