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

Factor out common buffer code #77

Open
prajnoha opened this issue Feb 15, 2021 · 0 comments
Open

Factor out common buffer code #77

prajnoha opened this issue Feb 15, 2021 · 0 comments

Comments

@prajnoha
Copy link
Member

Some buffer code like _buffer_linear_realloc and _buffer_vector_realloc is very similar. Factor this common code out into a generic function that the linear and vector type can use.

When factoring out the code, we need to consider that linear and vector variants of the buffer use different units and different meaning of 'size' - in linear, the size is multiple of byte while in vector, the 'size' is the number of vector elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant