Core namespace for compiling and decompiling WASM binaries. Mentions the [BinF library](https://github.com/helins/binf.cljc). See README.
(buffer->view buffer)
Prepares a BinF buffer to a BinF view ready for decompilation.
Prepares a BinF buffer to a BinF view ready for decompilation.
(compile ctx)
Compiles the given ctx
into a BinF view.
Compiles the given `ctx` into a BinF view.
(compile-file ctx path)
Compiles the given ctx
right directly to the given file path
.
Compiles the given `ctx` right directly to the given file `path`.
(ctx)
Returns a new empty context as described in the README.
Can be used with decompile
but is typically not necessary as one is created
when none is provided.
Returns a new empty context as described in the README. Can be used with [[decompile]] but is typically not necessary as one is created when none is provided.
(decompile view)
(decompile ctx view)
Decompiles the given BinF view
into a ctx
.
Decompiles the given BinF `view` into a `ctx`.
(decompile-file path)
(decompile-file ctx path)
Decompiles the file at path
into a ctx
.
Decompiles the file at `path` into a `ctx`.
(prepare-view view)
Prepares a BinF view for decompilation by setting the right endianess.
Prepares a BinF view for decompilation by setting the right endianess.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close