Skip to content

JsCreateStringUtf16

Xiaoyin Liu edited this page Aug 22, 2017 · 4 revisions

Create JavascriptString variable from Utf16 string

Syntax

CHAKRA_API
    JsCreateStringUtf16(
        _In_ const uint16_t *content,
        _In_ size_t length,
        _Out_ JsValueRef *value);

Parameters

  • content: Pointer to string memory.
  • length: Number of bytes within the string
  • value: JsValueRef representing the JavascriptString

Return Value

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

Remarks

This API is experimental and may have breaking change later.

Requires an active script context.

Expects Utf16 string.

Clone this wiki locally