MCPcopy Create free account
hub / github.com/activeloopai/deeplake / copy_data

Method copy_data

cpp/nd/impl/stacked_array.hpp:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 }
276
277 void copy_data(std::span<uint8_t> buffer) const
278 {
279 auto current_offset = 0L;
280 for (const auto& a : a_) {
281 auto vol = a.volume() * sizeof(T);
282 auto sp = std::span<uint8_t>(buffer.data() + current_offset, vol);
283 nd::copy_data(a, base::span_cast<uint8_t>(sp));
284 current_offset += vol;
285 }
286 }
287
288 uint8_t dimensions() const
289 {

Callers

nothing calls this directly

Calls 2

volumeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected