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

Why does the Buffer have a capacity element #6

Open
fogti opened this issue Jun 28, 2020 · 0 comments · May be fixed by #5
Open

Why does the Buffer have a capacity element #6

fogti opened this issue Jun 28, 2020 · 0 comments · May be fixed by #5

Comments

@fogti
Copy link

fogti commented Jun 28, 2020

The memory element has a capacity() and a len() method (I think memory.len() might be the appropriate equivalent to self.capacity), why is it necessary to have another struct element capacity in the struct Buffer? This seems like duplicate book-keeping to me, why is that necessary?

see also: example of reduction

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.

1 participant