We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9685f8 commit 757716fCopy full SHA for 757716f
extension/module/module.cpp
@@ -164,6 +164,11 @@ runtime::Error Module::load(const runtime::Program::Verification verification) {
164
return runtime::Error::Ok;
165
}
166
167
+runtime::Result<size_t> Module::num_methods() {
168
+ ET_CHECK_OK_OR_RETURN_ERROR(load());
169
+ return program_->num_methods();
170
+}
171
+
172
runtime::Result<std::unordered_set<std::string>> Module::method_names() {
173
ET_CHECK_OK_OR_RETURN_ERROR(load());
174
const auto method_count = program_->num_methods();
0 commit comments