MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / end

Method end

src/ipc/buffer_assembler.cpp:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60std::optional<AssembledBuffer> BufferAssembler::end(const std::string& name) {
61 const auto it = in_progress_.find(name);
62 if (it == in_progress_.end()) {
63 return std::nullopt;
64 }
65 auto& entry = it->second;
66 AssembledBuffer out{.variable_name = std::move(entry.params.variable_name),
67 .display_name = std::move(entry.params.display_name),
68 .pixel_layout = std::move(entry.params.pixel_layout),
69 .transpose = entry.params.transpose,
70 .width = entry.params.width,
71 .height = entry.params.height,
72 .channels = entry.params.channels,
73 .stride = entry.params.stride,
74 .type = entry.params.type,
75 .bytes = std::move(entry.bytes)};
76 in_progress_.erase(it);
77 return out;
78}
79
80} // namespace oid

Callers 15

get_camera_componentFunction · 0.80
buffer_updateMethod · 0.80
drawMethod · 0.80
merge_previous_buffersFunction · 0.80
stage_forMethod · 0.80
syncMethod · 0.80
texture_forMethod · 0.80
evict_missingMethod · 0.80
chunkMethod · 0.80
sendMethod · 0.80

Calls 1

eraseMethod · 0.80

Tested by 8

sendMethod · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
sendMethod · 0.64
feedMethod · 0.64
sendMethod · 0.64
TESTFunction · 0.64
TESTFunction · 0.64