-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsStringToPointer
Limin Zhu edited this page Mar 14, 2017
·
2 revisions
Retrieves the string pointer of a string value.
STDAPI_(JsErrorCode)
JsStringToPointer(
_In_ JsValueRef value,
_Outptr_result_buffer_(*stringLength) const wchar_t **stringValue,
_Out_ size_t *stringLength);
- value: The string value to convert to a string pointer.
- stringValue: The string pointer.
- stringLength: The length of the string.
The code JsNoError if the operation succeeded, a failure code otherwise.
This API is Windows-only (see JsCopyString/JsCopyStringUtf16 for cross-platform equivalent). This function retrieves the string pointer of a string value. It will fail with JsErrorInvalidArgument if the type of the value is not string. The lifetime of the string returned will be the same as the lifetime of the value it came from, however the string pointer is not considered a reference to the value (and so will not keep it from being collected). Requires an active script context.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!