| 1 | #include "duckdb/common/serializer.hpp" |
|---|---|
| 2 | |
| 3 | using namespace duckdb; |
| 4 | using namespace std; |
| 5 | |
| 6 | template <> string Deserializer::Read() { |
| 7 | uint32_t size = Read<uint32_t>(); |
| 8 | auto buffer = unique_ptr<data_t[]>(new data_t[size]); |
| 9 | ReadData(buffer.get(), size); |
| 10 | return string((char *)buffer.get(), size); |
| 11 | } |
| 12 |