Skip to content

JsCreateString

Limin Zhu edited this page Feb 23, 2017 · 5 revisions

Create JavascriptString variable from ASCII or Utf8 string

Syntax

CHAKRA_API
    JsCreateString(
        _In_ const char *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

Input string can be either ASCII or Utf8

Clone this wiki locally