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
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
Metadata
Assignees
Labels
No labels
Activity