In C#, I can specify a fixed sized buffer using the fixed
keyword, like so:
public unsafe struct StructWithFixedBuffer
{
public fixed char FixedBuffer[128];
}
how would I express the same thing in C++/CLI?
One of the C++/CLI developer blogs had code for a template solution to this, I'll try to find a link.
Ahh, found it. It's called inline_array
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With