-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsSerializeScript
Limin Zhu edited this page Oct 9, 2015
·
3 revisions
Serializes a parsed script to a buffer than can be reused.
STDAPI_(JsErrorCode)
JsSerializeScript(
_In_z_ const wchar_t *script,
_Out_writes_to_opt_(*bufferSize, *bufferSize) BYTE *buffer,
_Inout_ unsigned long *bufferSize);
- script: The script to serialize.
- buffer: The buffer to put the serialized script into. Can be null.
- bufferSize: On entry, the size of the buffer, in bytes; on exit, the size of the buffer, in bytes, required to hold the serialized script.
The code JsNoError if the operation succeeded, a failure code otherwise.
JsSerializeScript parses a script and then stores the parsed form of the script in a runtime-independent format. The serialized script then can be deserialized in any runtime without requiring the script to be re-parsed. 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!