Struct BytesAdaptor

Inheritance Relationships

Base Type

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_cfgDemuxer configuration.

Returns:

DataInterface for accessing the memory buffer.