Skip to content

Commit 7138d86

Browse files
feat: add memo() to Module
1 parent 3524a93 commit 7138d86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/blook/module.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class Module : public std::enable_shared_from_this<Module> {
4242

4343
std::optional<MemoryRange> section(const std::string &name);
4444

45+
inline MemoryRange memo() {
46+
return base().range_size(size());
47+
}
48+
4549
std::optional<Function> entry_point();
4650

4751
void *data();

0 commit comments

Comments
 (0)