util/CircularBuffer: use std::span internally

This commit is contained in:
Max Kellermann
2024-07-29 22:06:26 +02:00
parent 596d2d93dd
commit dbaa72cb40
6 changed files with 28 additions and 31 deletions

View File

@@ -16,8 +16,7 @@ ThreadInputStream::ThreadInputStream(const char *_plugin,
:InputStream(_uri, _mutex),
plugin(_plugin),
thread(BIND_THIS_METHOD(ThreadFunc)),
allocation(_buffer_size),
buffer(&allocation.front(), allocation.size())
allocation(_buffer_size)
{
allocation.SetName("InputStream");
allocation.ForkCow(false);