aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks/IO/createReadBufferFromFileBase.h
blob: c2e2040587bd474ac4c3668e08bfcf18a5880066 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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 read_hint - the number of bytes to read hint
  * @param file_size - size of file
  */
std::unique_ptr<ReadBufferFromFileBase> createReadBufferFromFileBase(
    const std::string & filename,
    const ReadSettings & settings,
    std::optional<size_t> read_hint = {},
    std::optional<size_t> file_size = {},
    int flags_ = -1,
    char * existing_memory = nullptr,
    size_t alignment = 0);

}