Skip to content

JsCreateDataView

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

Creates a Javascript DataView object.

Syntax

STDAPI_(JsErrorCode)
    JsCreateDataView(
    _In_ JsValueRef arrayBuffer,
    _In_ unsigned int byteOffset,
    _In_ unsigned int byteLength,
    _Out_ JsValueRef *result);

Parameters

  • arrayBuffer: An existing ArrayBuffer object to use as the storage for the result DataView object.
  • byteOffset: The offset in bytes from the start of arrayBuffer for result DataView to reference.
  • byteLength: The number of bytes in the ArrayBuffer for result DataView to reference.
  • result: The new DataView object.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally