Hi,
I have a question about buffers.
If I declare a buffer like [10][255]u8 I will get this 10*255 buffer directly in memory (so within the declared struct).
Is there a way to do this without actually knowing the size at compile time and only at runtime like: [size][255]u8, where size is some int saved somewhere else?
I know that I could use raw array pointers or slices like [*][255]u8, however I am required to actually save the buffer and not a pointer (since I am working with shared memory on linux).
One solution I did find is that I save one [255]u8 and use it the create a slice based on its address, but that feels like a hacky solution.
Thx for answering in advance!