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

JsSerializeScript

Limin Zhu edited this pageMar 14, 2017 ·3 revisions

Serializes a parsed script to a buffer than can be reused.

Syntax

STDAPI_(JsErrorCode)    JsSerializeScript(    _In_z_ const wchar_t *script,    _Out_writes_to_opt_(*bufferSize, *bufferSize) BYTE *buffer,    _Inout_ unsigned long *bufferSize);

Parameters

  • 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.

Return Value

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

Remarks

This API is Windows-only (seeJsSerialize for cross-platform equivalent).JsSerializeScript parses a script and then stores the parsed form of the script in aruntime-independent format. The serialized script then can be deserialized in anyruntime without requiring the script to be re-parsed.Requires an active script context.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp