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

malloc.read needs offset and size #3071

Closed
yegor256 opened this issue Apr 9, 2024 · 2 comments · Fixed by #3075
Closed

malloc.read needs offset and size #3071

yegor256 opened this issue Apr 9, 2024 · 2 comments · Fixed by #3075

Comments

@yegor256
Copy link
Member

yegor256 commented Apr 9, 2024

Currently, malloc.read reads the entire memory block, which is not effective. Let's make it read from offset provided and only the size of bytes.

(malloc 1024).pointer > p
p.write 100 "Hello!"
QQ.io.stdout
  (p.read 100 6).as-string
@yegor256
Copy link
Member Author

yegor256 commented Apr 9, 2024

@maxonfjvipon WDYT?

@maxonfjvipon
Copy link
Member

@yegor256 sounds reasonable, let's do it

maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Apr 10, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Apr 10, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Apr 10, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Apr 10, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Apr 10, 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 a pull request may close this issue.

2 participants