Skip to content

Add RingBuf::as_slices #19159

Closed
Closed
@bfops

Description

@bfops

It would be nice to have something like pub fn as_slices(&'a self) -> (&'a [T], &'a [T]) for bulk access of RingBuf data (e.g. for supplying to OpenGL without lots of glBufferSubData calls and without copying to an intermediate buffer).

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