hasmer
Public Member Functions | Properties | List of all members
Hasmer.Decompiler.HbcDecompiler Class Reference

Represents a decompiler of a Hermes bytecode file, used for approximating the original JavaScript source. More...

Public Member Functions

 HbcDecompiler (HbcFile source, DecompilerOptions options)
 Creates a new HbcDecompiler given the bytecode file to decompile and the options to be used for decompiling. More...
 
string Decompile (bool preserveAst)
 Decompiles the bytecode file into either a JSON AST or JavaScript source code. More...
 

Properties

DecompilerOptions Options [get, set]
 The options to be used when decompiling. More...
 
HbcFile Source [get, set]
 The Hermes bytecode file used for decompilation. More...
 
DataDisassembler DataDisassembler [get, set]
 The disassembler used for parsing data from the bytecode file's data buffers. More...
 

Detailed Description

Represents a decompiler of a Hermes bytecode file, used for approximating the original JavaScript source.

Constructor & Destructor Documentation

◆ HbcDecompiler()

Hasmer.Decompiler.HbcDecompiler.HbcDecompiler ( HbcFile  source,
DecompilerOptions  options 
)
inline

Creates a new HbcDecompiler given the bytecode file to decompile and the options to be used for decompiling.

Member Function Documentation

◆ Decompile()

string Hasmer.Decompiler.HbcDecompiler.Decompile ( bool  preserveAst)
inline

Decompiles the bytecode file into either a JSON AST or JavaScript source code.

Property Documentation

◆ DataDisassembler

DataDisassembler Hasmer.Decompiler.HbcDecompiler.DataDisassembler
getset

The disassembler used for parsing data from the bytecode file's data buffers.

◆ Options

DecompilerOptions Hasmer.Decompiler.HbcDecompiler.Options
getset

The options to be used when decompiling.

◆ Source

HbcFile Hasmer.Decompiler.HbcDecompiler.Source
getset

The Hermes bytecode file used for decompilation.


The documentation for this class was generated from the following file: