Skip to content

JsCreateArrayBuffer

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

Creates a Javascript ArrayBuffer object.

Syntax

STDAPI_(JsErrorCode)
    JsCreateArrayBuffer(
    _In_ unsigned int byteLength,
    _Out_ JsValueRef *result);

Parameters

  • byteLength: The number of bytes in the ArrayBuffer.
  • result: The new ArrayBuffer object.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally