Skip to content

JsCreateStringUtf16

Alex Godoy Wolff edited this page Nov 16, 2016 · 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

Expects Utf16 string

Clone this wiki locally