client: remove some buffer copies

This commit is contained in:
Patrick Nicolas
2022-11-26 23:03:15 +01:00
parent fdc7d80aa8
commit 841e68ee28
5 changed files with 49 additions and 56 deletions
+3 -2
View File
@@ -183,9 +183,10 @@ void decoder::blit(VkCommandBuffer command_buffer, blit_handle & handle, std::sp
}
}
void decoder::push_data(std::span<uint8_t> data, uint64_t frame_index, bool partial)
void decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial)
{
packet.insert(packet.end(), data.begin(), data.end());
for (const auto& d: data)
packet.insert(packet.end(), d.begin(), d.end());
this->frame_index = frame_index;
}