save timelapse stream to file
This commit is contained in:
@@ -414,23 +414,23 @@ public:
|
||||
};
|
||||
struct RawData : public Type
|
||||
{
|
||||
std::vector<uint8_t> data;
|
||||
std::vector<uint8_t> value;
|
||||
RawData() = default;
|
||||
//RawData(const RawData&) = delete;
|
||||
RawData(std::vector<uint8_t> data) : data(data) { }
|
||||
RawData(std::vector<uint8_t> data) : value(data) { }
|
||||
virtual std::string type_key() const override { return "tdta"; }
|
||||
virtual std::string str(int indent, const std::string& prefix) const override
|
||||
{
|
||||
return std::string(indent, '-') + prefix + fmt::format("raw: {} bytes", data.size());
|
||||
return std::string(indent, '-') + prefix + fmt::format("raw: {} bytes", value.size());
|
||||
}
|
||||
virtual bool read(BinaryStreamReader& r) override
|
||||
{
|
||||
data = r.rraw();
|
||||
value = r.rraw();
|
||||
return true;
|
||||
}
|
||||
virtual void write(BinaryStreamWriter& w) const override
|
||||
{
|
||||
w.wraw(data);
|
||||
w.wraw(value);
|
||||
}
|
||||
};
|
||||
struct Descriptor : public Type
|
||||
|
||||
Reference in New Issue
Block a user