mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
18 lines
331 B
C++
18 lines
331 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())
|
||
|
{}
|
||
|
};
|
||
|
|
||
|
}
|