JsSerializedScriptLoadSourceCallback Typedef

Called by the runtime to load the source code of the serialized script. The caller must keep the script buffer valid until the JsSerializedScriptUnloadCallback.

Syntax

typedef bool (CALLBACK * JsSerializedScriptLoadSourceCallback)(  
  _In_ JsSourceContextsourceContext,  
  _Outptr_result_z_ const wchar_t** scriptBuffer  
);  

Parameters

sourceContext
The context passed to JsParseSerializedScriptWithCallback or JsRunSerializedScriptWithCallback.

scriptBuffer
The script returned.

Remarks

Warning

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)