#pragma once #include #include namespace DB { class ReadBufferFromNuraftBuffer : public ReadBufferFromMemory { public: explicit ReadBufferFromNuraftBuffer(nuraft::ptr buffer) : ReadBufferFromMemory(buffer->data_begin(), buffer->size()) {} explicit ReadBufferFromNuraftBuffer(nuraft::buffer & buffer) : ReadBufferFromMemory(buffer.data_begin(), buffer.size()) {} }; }