© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
realivanjxツ

❔ 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
byte[] arr = ...;
byte* buffer = arr;
var x = *buffer++; // actual line is much more complicated operations than this

what does the
*buffer++
*buffer++
do? is it equal to
buffer[index++]
buffer[index++]
or
buffer[index]++
buffer[index]++
. thanks.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Unsafe code
C#CC# / help
9mo ago
function pointer
C#CC# / help
3y ago
❔ Pointer Issue.
C#CC# / help
3y ago
✅ unsafe code problems
C#CC# / help
11mo ago