MCPcopy Create free account
hub / github.com/Niko1221/Strata / copy_blob

Method copy_blob

engine/src/core/expert_source.cpp:1804–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802
1803
1804bool ExpertSource::copy_blob(int64_t layer, int64_t expert, uint8_t* dst) {
1805 const uint8_t* b = blob(layer, expert);
1806 if (b == nullptr || dst == nullptr) return false;
1807 std::memcpy(dst, b, (size_t) strata::kernels::cpu::expert_layout().blob_bytes(layer));
1808 return true;
1809}
1810
1811bool ExpertSource::copy_blobs(const int32_t* layers, const int32_t* experts, uint8_t* const* dst, size_t n) {
1812 for (size_t i = 0; i < n; ++i)

Callers 7

arenaFunction · 0.45
test_unbuffered_readsFunction · 0.45
test_io_prefetchFunction · 0.45
test_rotating_sourceFunction · 0.45
test_replace_residentFunction · 0.45

Calls 8

memcpyFunction · 0.85
expert_layoutFunction · 0.85
fetch_addMethod · 0.80
blobFunction · 0.50
nowFunction · 0.50
blob_bytesMethod · 0.45
emptyMethod · 0.45
countMethod · 0.45

Tested by 7

arenaFunction · 0.36
test_unbuffered_readsFunction · 0.36
test_io_prefetchFunction · 0.36
test_rotating_sourceFunction · 0.36
test_replace_residentFunction · 0.36