Skip to content

JsCreateString

Alex Godoy Wolff edited this page Nov 16, 2016 · 5 revisions

Create JavascriptString variable from C 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

C string is expected to be ASCII

Clone this wiki locally