class TextDecompiler[F[_]] extends Decompiler[F]
A decompiler from binary format, that formats into the text representation.
This decompiler requires a valid module (validation is performed by the decompiler) to be able to work. It uses the fact that all types are valid to smartly use the folded syntax for all operators and function calls.
This decompiler also takes advantage of the custom name section if present to add identifier to the output.
- Source
- TextDecompiler.scala
- Alphabetic
- By Inheritance
- TextDecompiler
- Decompiler
- ModuleLoader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def decompile(sections: Stream[F, Section]): F[Doc]
Returns a pretty-printed Doc resulting from decompiling the module at the given section stream.
Returns a pretty-printed Doc resulting from decompiling the module at the given section stream.
The module is not validated so invalid modules can also be decompiled.
- Definition Classes
- TextDecompiler → Decompiler
- def decompileBytes(bytes: Stream[F, Byte]): F[Doc]
Returns a pretty-printed Doc resulting from decompiling the module at the given bytes.
Returns a pretty-printed Doc resulting from decompiling the module at the given bytes.
The module is not validated so invalid modules can also be decompiled.
- Definition Classes
- Decompiler
- def decompileModule(sections: Stream[F, Section]): F[(Module, Map[Index, FuncType])]
Decompiles to an unresolved text module.
- def decompilePath(path: Path, blocker: Blocker, chunkSize: Int = 1024)(implicit cs: ContextShift[F]): F[Doc]
Returns a pretty-printed Doc resulting from decompiling the module at the given path.
Returns a pretty-printed Doc resulting from decompiling the module at the given path.
The module is not validated so invalid modules can also be decompiled.
- Definition Classes
- Decompiler
- def sections(bytes: Stream[F, Byte]): Stream[F, Section]
Reads a binary module from the given bytes.
Reads a binary module from the given bytes.
- Definition Classes
- ModuleLoader
- def sections(path: Path, blocker: Blocker, chunkSize: Int = 1024)(implicit cs: ContextShift[F]): Stream[F, Section]
Reads a binary module from the given path.
Reads a binary module from the given path.
- Definition Classes
- ModuleLoader