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

Changes Read to receive uint64 byte count. #2085

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Changes Read to receive uint64 byte count. #2085

merged 3 commits into from
Feb 28, 2024

Conversation

ncruces
Copy link
Collaborator

@ncruces ncruces commented Feb 21, 2024

Since #2074 changed the type of Size() uint64 to we should probably change the type of Read(offset uint32, byteCount uint64) ([]byte, bool). Otherwise, there's no API that gets entire buffer, if it covers the entire address range.

As discussed on slack.

@ncruces ncruces marked this pull request as draft February 21, 2024 01:11
@mathetake
Copy link
Member

looking good. can you proceed?

@ncruces
Copy link
Collaborator Author

ncruces commented Feb 24, 2024

I got a bit stuck with the test failures, then work/life got in the way. Let me try again.

@mathetake
Copy link
Member

yeah cool, no rush anyway!

Signed-off-by: Nuno Cruces <[email protected]>
Signed-off-by: Nuno Cruces <[email protected]>
@ncruces ncruces marked this pull request as ready for review February 27, 2024 13:19
@ncruces
Copy link
Collaborator Author

ncruces commented Feb 27, 2024

This will definitely cause more churn than #2074, but if we want to do it, v2 is the right time.

Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

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

@evacchi this must be explained in the release note together with #2074 👍

@mathetake mathetake merged commit 8a61b01 into tetratelabs:main Feb 28, 2024
69 checks passed
@ncruces ncruces deleted the memapi branch February 29, 2024 23:41
mathetake added a commit that referenced this pull request Mar 2, 2024
EclesioMeloJunior pushed a commit to ChainSafe/wazero that referenced this pull request Mar 6, 2024
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.

2 participants