- Notifications
You must be signed in to change notification settings - Fork1.2k
JsStringToPointer
Limin Zhu edited this pageMar 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 codeJsNoError if the operation succeeded, a failure code otherwise.
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.
- 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!