Skip to content
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

Merged
merged 2 commits into from
Oct 13, 2020
Merged

C API Instance memory access #596

merged 2 commits into from
Oct 13, 2020

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Oct 12, 2020

No description provided.

@gumb0 gumb0 force-pushed the capi-instance-memory2 branch 2 times, most recently from 40f90df to 7c8012f Compare October 12, 2020 14:19
@codecov
Copy link

codecov bot commented Oct 12, 2020

Codecov Report

Merging #596 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           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.
Copy link
Member

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?

Copy link
Collaborator Author

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

Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a note.

test/unittests/capi_test.cpp Outdated Show resolved Hide resolved
@@ -75,6 +75,71 @@ TEST(capi, free_instance_null)
fizzy_free_instance(nullptr);
}

TEST(capi, memory_access)
Copy link
Member

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.

Base automatically changed from capi-execute-dynamic-module to master October 12, 2020 17:16
@gumb0 gumb0 merged commit 7f86deb into master Oct 13, 2020
@gumb0 gumb0 deleted the capi-instance-memory2 branch October 13, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants