mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
20 lines
347 B
C++
20 lines
347 B
C++
#pragma once
|
|
|
|
#include <IO/ReadBufferFromMemory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Allows to read from std::string-like object.
|
|
*/
|
|
class ReadBufferFromString : public ReadBufferFromMemory
|
|
{
|
|
public:
|
|
/// std::string or something similar
|
|
template <typename S>
|
|
ReadBufferFromString(const S & s) : ReadBufferFromMemory(s.data(), s.size()) {}
|
|
};
|
|
|
|
}
|