Is there anyway to stack allocate in kotlin native, specifically not value classes as thats just optimization. I’m guessing its not possible with data classes etc, but is there a way with some very unsafe code. Like allocating directly into a buffer each primitive at specific addresses
Charlie Tapping
05/05/2023, 2:11 PM
Failing that can I inline assembly? Are there any examples of this