JFJochFrameSerializer: for the buffer return pointer + size, not vector reference (allows for more flexibility)

This commit is contained in:
2023-05-01 19:01:12 +02:00
parent 60d95dc0d7
commit af2ed525a0
15 changed files with 50 additions and 76 deletions
-12
View File
@@ -15,15 +15,3 @@ void PrepareCBORImage(DataMessage& message,
message.image.algorithm = experiment.GetCompressionAlgorithmEnum();
message.image.channel = "default";
}
void PrepareDataMessageSpots(DataMessage& message,
const std::vector<DiffractionSpot>& spots) {
message.spots.clear();
for (const auto & spot : spots)
message.spots.push_back(spot);
}
void ImagePusher::SendData(const std::vector<uint8_t> &serialized_image, int64_t image_number) {
SendDataInternal(serialized_image, image_number);
}