MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / mainEntryExampleReadBuffer

Function mainEntryExampleReadBuffer

src/IO/examples/read_buffer.cpp:42–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42int mainEntryExampleReadBuffer(int, char **)
43{
44 {
45 std::string s = "-123456 123.456 вася pe\\ttya\t'\\'xyz\\\\'";
46 DB::ReadBufferFromString in(s);
47 if (readAndPrint(in))
48 std::cout << "readAndPrint from ReadBufferFromString failed" << std::endl;
49 }
50
51
52 std::shared_ptr<DB::ReadBufferFromOwnString> in;
53 {
54 std::string s = "-123456 123.456 вася pe\\ttya\t'\\'xyz\\\\'";
55 in = std::make_shared<DB::ReadBufferFromOwnString>(s);
56 }
57 if (readAndPrint(*in))
58 std::cout << "readAndPrint from ReadBufferFromOwnString failed" << std::endl;
59
60 return 0;
61}

Callers

nothing calls this directly

Calls 1

readAndPrintFunction · 0.85

Tested by

no test coverage detected