24 #ifndef STATICLIB_IO_MEMORY_SINK_HPP
25 #define STATICLIB_IO_MEMORY_SINK_HPP
30 #include "staticlib/config.hpp"
31 #include "staticlib/support.hpp"
87 dest(std::move(other.dest)),
97 dest = std::move(other.dest);
109 if (span.
size() <= dest.
size() - idx) {
110 std::memcpy(dest.
data() + idx, span.
data(), span.
size());
115 " req: [" + sl::support::to_string(span.
size()) +
"]," +
116 " avail: [" + sl::support::to_string(dest.
size() - idx) +
"]"));