start sketching

This commit is contained in:
2024-04-24 22:29:08 +02:00
parent 2d4729a877
commit d52a1a44f8
5 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#pragma once
#include <solanaceae/util/span.hpp>
// most media that can be counted as "stream" comes in packets/frames/messages
// so this class provides an interface for ideal async fetching of frames
struct RawFrameStreamReaderI {
// return the number of ready frames in cache
// returns -1 if unknown
virtual int64_t have(void) = 0;
// get next frame, empty if none
virtual ByteSpan getNext(void) = 0;
};