MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / push_data

Method push_data

client/decoder/raw_decoder.cpp:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void raw_decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial)
188{
189 if (frame_index != current_frame)
190 {
191 input_pos = (uint8_t *)input[0].map();
192 current_frame = frame_index;
193 }
194 for (const auto & item: data)
195 {
196 memcpy(input_pos, item.data(), item.size_bytes());
197 input_pos += item.size();
198 }
199}
200
201void raw_decoder::frame_completed(
202 const from_headset::feedback & feedback,

Callers 1

try_submit_frameMethod · 0.45

Calls 3

mapMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected