You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: