MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / add_request

Method add_request

modules/engine/runtime/src/io/ram/ram_io.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void RAMIOBatch::add_request(IORequestId request, RAMIOBufferId buffer, skr_io_future_t* future) SKR_NOEXCEPT
41{
42 auto rq = skr::static_pointer_cast<RAMRequestMixin>(request);
43 if (auto pStatus = io_component<IOStatusComponent>(request.get()))
44 {
45 pStatus->owner_batch = this;
46 pStatus->future = future;
47 }
48 rq->destination = buffer;
49 if (auto pComp = io_component<BlocksComponent>(rq.get()))
50 {
51 SKR_ASSERT(!pComp->blocks.empty());
52 }
53 addRequest(request);
54}
55
56IOResultId RAMIOBatch::add_request(IORequestId request, skr_io_future_t* future) SKR_NOEXCEPT
57{

Callers 5

requestMethod · 0.45
InstallImplMethod · 0.45
InstallImplMethod · 0.45
requestMethod · 0.45

Calls 4

addRequestFunction · 0.85
getMethod · 0.45
emptyMethod · 0.45
allocateMethod · 0.45

Tested by

no test coverage detected