mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
25 lines
503 B
C++
25 lines
503 B
C++
#pragma once
|
|
|
|
#include <IO/ReadBufferFromFileBase.h>
|
|
#include <IO/ReadSettings.h>
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Create an object to read data from a file.
|
|
*
|
|
* @param size - the number of bytes to read
|
|
*/
|
|
std::unique_ptr<ReadBufferFromFileBase> createReadBufferFromFileBase(
|
|
const std::string & filename,
|
|
const ReadSettings & settings,
|
|
std::optional<size_t> size = {},
|
|
int flags_ = -1,
|
|
char * existing_memory = nullptr,
|
|
size_t alignment = 0);
|
|
|
|
}
|