Skip to content

JsCreateSharedArrayBufferWithSharedContent

rhuanjl edited this page Sep 1, 2018 · 1 revision

Creates a Javascript SharedArrayBuffer object with shared content get from JsGetSharedArrayBufferContent.

Syntax

CHAKRA_API
    JsCreateSharedArrayBufferWithSharedContent(
        _In_ JsSharedArrayBufferContentHandle sharedContents,
        _Out_ JsValueRef *result);

Parameters

  • sharedContents: The storage object of a SharedArrayBuffer which can be shared between multiple thread.
  • result: The new SharedArrayBuffer object.

Return Value

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

Remarks

This API is experimental and may have breaking changes later.

Requires an active script context.

Clone this wiki locally