Jerryscript::Snapshot Namespace Reference

Snapshot management functions. More...

Functions

Load a snapshot into the virtual machine and execute it
Value load (const uint32_t *snapshot, size_t snapshotSize)
 Load from memory buffer. More...
 
Value load (const String &snapshot)
 Load snapshot from String and execute it. More...
 
Value loadFromFile (const String &fileName)
 Load a snapshot from file and execute it. More...
 

Detailed Description

Snapshot management functions.

Function Documentation

◆ load() [1/2]

Value Jerryscript::Snapshot::load ( const String snapshot)
inline

Load snapshot from String and execute it.

Parameters
snapshotSnapshot content
Return values
ValueResult from execution, or Error

◆ load() [2/2]

Value Jerryscript::Snapshot::load ( const uint32_t *  snapshot,
size_t  snapshotSize 
)

Load from memory buffer.

Parameters
snapshotPoints to snapshot content
snapshotSizeNumber of bytes in snapshot
Return values
ValueResult from execution, or Error

◆ loadFromFile()

Value Jerryscript::Snapshot::loadFromFile ( const String fileName)
inline

Load a snapshot from file and execute it.

Parameters
fileNamePath to snapshot file
Return values
ValueResult from execution, or Error