Skip to content

ArrayBuffer concat semantics #2

@bengl

Description

@bengl

From #1:

  1. A key goal is to provide an API for concatenation of two-or-more TypedArray instances in a single call that returns a new TypedArray and new backing ArrayBuffer.

What would the new backing ArrayBuffer look like? I'd suppose that TypedArrays referring to their entire backing buffer could simply concatenate those two buffers, but for TypedArrays referring to ranges smaller than their backing buffer, would the concatenated TypedArray have a buffer that it refers to entirely? I think that makes the most sense, and still gives implementors some room for implementing it lazily under-the-hood if desired.

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