Skip to content

Factor out common buffer code #77

@prajnoha

Description

@prajnoha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions