-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C API Instance memory access #596
Conversation
40f90df
to
7c8012f
Compare
Codecov Report
@@ Coverage Diff @@
## master #596 +/- ##
=======================================
Coverage 98.24% 98.25%
=======================================
Files 63 63
Lines 9180 9224 +44
=======================================
+ Hits 9019 9063 +44
Misses 161 161 |
@@ -90,6 +90,14 @@ FizzyInstance* fizzy_instantiate(const FizzyModule* module, | |||
/// Free resources associated with the instance. | |||
void fizzy_free_instance(FizzyInstance* instance); | |||
|
|||
/// Get pointer to memory of an instance. | |||
/// @returns Pointer to memory data or NULL in case instance doesn't have any memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Any" or "any exported" memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gives access to any memory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify that in the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note.
f38f7e5
to
59419bd
Compare
7c8012f
to
287461e
Compare
test/unittests/capi_test.cpp
Outdated
@@ -75,6 +75,71 @@ TEST(capi, free_instance_null) | |||
fizzy_free_instance(nullptr); | |||
} | |||
|
|||
TEST(capi, memory_access) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the imported_memory_access
and the other case is memory_access
.
287461e
to
01cdc30
Compare
01cdc30
to
bbea2e4
Compare
No description provided.