I will add another way :-)
unsafe struct FixedBufferExample { public fixed byte Buffer[128 * 1024];
Now this structure is 128kb :-) If you declare a local variable (of a method that does not use yield or async) of type FixedBufferExample , it should use the 128kb stack. You can quickly use your stack.
xanatos Oct 10 2018-11-11T00: 00Z
source share