Struct BytesAdaptor¶
Defined in File adaptor.h
Inheritance Relationships¶
Base Type¶
public spdl::core::SourceAdaptor(Struct SourceAdaptor)
Struct Documentation¶
-
struct BytesAdaptor : public spdl::core::SourceAdaptor¶
Adaptor for in-memory data.
BytesAdaptor creates a data interface for complete, contiguous media data stored in memory (not partial/streaming data).
Public Functions
-
virtual DataInterfacePtr get_interface(std::string_view data, const DemuxConfig &dmx_cfg, const std::optional<std::string> &name = std::nullopt) const override¶
Create a data interface for in-memory data.
- Parameters:
data – String view of the media data.
dmx_cfg – Demuxer configuration.
- Returns:
DataInterface for accessing the memory buffer.
-
virtual DataInterfacePtr get_interface(std::string_view data, const DemuxConfig &dmx_cfg, const std::optional<std::string> &name = std::nullopt) const override¶