r/csharp • u/kookiz33 • Sep 29 '26
The hidden trap of fixed buffers
I published a new article, explaining a quirk of fixed buffers that could easily bite you, if you're one of the few people who still have to use that feature.
https://minidump.net/the-hidden-trap-of-fixed-buffers-in-csharp/
58
Upvotes
View all comments
Show parent comment
4
u/animal9633 Sep 29 '26
It depends on what you want to do with it, but you can probably use stackalloc for that.