mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
Remove VLAs (#124)
Removing the use of VLAs in the client and receiver side code. In addition cleaning up sending jsonheader
This commit is contained in:
@ -51,9 +51,12 @@ class BinaryFile : private virtual slsDetectorDefs, public File {
|
||||
private:
|
||||
int WriteData(char *buf, int bsize);
|
||||
|
||||
FILE *filefd;
|
||||
FILE *filefd = nullptr;
|
||||
static FILE *masterfd;
|
||||
uint32_t numFramesInFile;
|
||||
uint64_t numActualPacketsInFile;
|
||||
const size_t maxMasterFileSize;
|
||||
};
|
||||
uint32_t numFramesInFile = 0;
|
||||
uint64_t numActualPacketsInFile = 0;
|
||||
//Make sure this is known at compile time
|
||||
//TODO! Later away from stack allocation of message
|
||||
static constexpr size_t maxMasterFileSize = 2000;
|
||||
|
||||
};
|
Reference in New Issue
Block a user