#include "PluginData.h" PluginData::PluginData(std::vector &&buffer, const std::string_view source) : mBuffer(std::move(buffer)), mSource(source) { } PluginData::PluginData(std::span buffer, const std::string_view source) : mBuffer(buffer.begin(), buffer.end()), mSource(source) { } PluginData::PluginData(PluginData &&src) : mBuffer(std::move(src.mBuffer)), mSource(std::move(src.mSource)) { } PluginData &PluginData::operator=(PluginData &&src) noexcept { if (this != &src) { this->mBuffer = std::move(src.mBuffer); this->mSource = std::move(src.mSource); } return *this; } uint32_t PluginData::getHandle() const { return reinterpret_cast(this); } std::span PluginData::getBuffer() const { return mBuffer; } const std::string &PluginData::getSource() const { return mSource; }