mirror of
https://github.com/srozb/nim-libpe
synced 2026-01-15 05:01:41 +00:00
No description
| .github/workflows | ||
| src | ||
| tests | ||
| .gitignore | ||
| libpe.nimble | ||
| LICENSE | ||
| README.md | ||
nim-libpe
Nim rewrite of merces/libpe PE library.
This library is used by my PE multitool Peni.
Usage
Minimal working example based on the original one from Author's GH readme, would be:
import libpe
import libpe/pe
import libpe/error
var ctx: pe_ctx_t
assert pe_load_file(addr ctx, "path_to_file".cstring) == LIBPE_E_OK
assert pe_parse(addr ctx) == LIBPE_E_OK
assert pe_is_pe(addr ctx)
echo $ctx.pe.entrypoint
For more info consult the test file.