❔ unsafe pointer operation

hi. im trying to rewrite code from other c# project to restore the sanity back. there is this one part that i dont quite understand:
byte[] arr = ...;
byte* buffer = arr;
var x = *buffer++; // actual line is much more complicated operations than this

what does the *buffer++ do? is it equal to buffer[index++] or buffer[index]++. thanks.
Was this page helpful?