Jerryscript::Snapshot Namespace Reference

Snapshot management functions. 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