mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
21 lines
470 B
C++
21 lines
470 B
C++
#pragma once
|
|
#include <IO/ReadBufferFromMemory.h>
|
|
|
|
#include <libnuraft/nuraft.hxx>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ReadBufferFromNuraftBuffer : public ReadBufferFromMemory
|
|
{
|
|
public:
|
|
explicit ReadBufferFromNuraftBuffer(nuraft::ptr<nuraft::buffer> buffer)
|
|
: ReadBufferFromMemory(buffer->data_begin(), buffer->size())
|
|
{}
|
|
explicit ReadBufferFromNuraftBuffer(nuraft::buffer & buffer)
|
|
: ReadBufferFromMemory(buffer.data_begin(), buffer.size())
|
|
{}
|
|
};
|
|
|
|
}
|