MCPcopy Create free account
hub / github.com/bytedance/bolt / toByteStream

Function toByteStream

bolt/exec/fuzzer/PrestoQueryRunner.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81std::unique_ptr<ByteInputStream> toByteStream(const std::string& input) {
82 std::vector<ByteRange> ranges;
83 ranges.push_back(
84 {reinterpret_cast<uint8_t*>(const_cast<char*>(input.data())),
85 (int32_t)input.length(),
86 0});
87 return std::make_unique<ByteInputStream>(std::move(ranges));
88}
89
90RowVectorPtr deserialize(
91 const RowTypePtr& rowType,

Callers 1

deserializeFunction · 0.70

Calls 3

lengthMethod · 0.80
push_backMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected