Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JsStringToPointer

Limin Zhu edited this pageMar 14, 2017 ·2 revisions

Retrieves the string pointer of a string value.

Syntax

STDAPI_(JsErrorCode)    JsStringToPointer(    _In_ JsValueRef value,    _Outptr_result_buffer_(*stringLength) const wchar_t **stringValue,    _Out_ size_t *stringLength);

Parameters

  • value: The string value to convert to a string pointer.
  • stringValue: The string pointer.
  • stringLength: The length of the string.

Return Value

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

Remarks

This API is Windows-only (seeJsCopyString/JsCopyStringUtf16 for cross-platform equivalent).This function retrieves the string pointer of a string value. It will fail withJsErrorInvalidArgument if the type of the value is not string. The lifetimeof the string returned will be the same as the lifetime of the value it came from, howeverthe string pointer is not considered a reference to the value (and so will not keep itfrom being collected).Requires an active script context.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp