MCPcopy Create free account
hub / github.com/apache/fory / copy_to_array_data

Method copy_to_array_data

cpp/fory/row/writer.cc:260–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260std::shared_ptr<ArrayData> ArrayWriter::copy_to_array_data() {
261 auto array_data = std::make_shared<ArrayData>(type_);
262 std::shared_ptr<Buffer> buf;
263 allocate_buffer(size(), &buf);
264 buffer_->copy(starting_offset_, size(), buf);
265 array_data->point_to(buf, 0, size());
266 return array_data;
267}
268
269} // namespace row
270} // namespace fory

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
mainFunction · 0.80

Calls 3

allocate_bufferFunction · 0.85
point_toMethod · 0.80
copyMethod · 0.65

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64