mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-24 17:00:43 +02:00
Kind of working
This commit is contained in:
@@ -44,8 +44,8 @@ struct BufferBinaryFormat {
|
||||
struct ImageBinaryFormat {
|
||||
ImageMetadata meta;
|
||||
char* data = nullptr;
|
||||
size_t size;
|
||||
ImageBinaryFormat(size_t H, size_t W, size_t D): size(H*W*D) { data = (char*) malloc(H*W*D); };
|
||||
const size_t size;
|
||||
ImageBinaryFormat(size_t H, size_t W, size_t D): size(H*W*D) { data = (char*) calloc(8*H*W*D, sizeof(int)); };
|
||||
~ImageBinaryFormat(){ free(data); std::cout << "ImageBinaryFormat destructor called!" << std::endl; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user