❔ 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:
what does the
*buffer++
do? is it equal to buffer[index++]
or buffer[index]++
. thanks.7 Replies
$tias
thanks a lot
it looks like this gets an element in the array
every time you increase the pointer, it points to the next element
This is not an acceptable response. Please refrain from meaningless contributions.
it's equivalent to buffer[index++] yes
it's just that you don't keep the original base pointer
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.