Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Why is MediaPlaylist.Segments a ring buffer instead of a normal slice? #127

Open
@eric

Description

I've been trying to reason out why the usage of MediaPlaylist.Segments is why it is and I have trouble coming up with good reasoning.

It seems that head and tail are used internally but not exposed anywhere publicly, so it is impossible to get a MediaPlaylist.Segments that matches the internal state.

It doesn't make sense to me why we can't just have MediaPlaylist.Segments be a strait forward slice where the capacity always maps to what is really defined.

Does anyone have any insight for why it is implemented this way?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions