| 38 | } |
| 39 | |
| 40 | void 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 | |
| 56 | IOResultId RAMIOBatch::add_request(IORequestId request, skr_io_future_t* future) SKR_NOEXCEPT |
| 57 | { |
no test coverage detected