Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unsigned char* C++ equivalent in C# (for raw data)

I'm translating some network code to C#. There is a buffer in every packet with unsigned char* type. This is basically raw bytes of data.

Is using string appropriate?

like image 831
y2k Avatar asked Nov 21 '25 04:11

y2k


1 Answers

Use an array of bytes instead.

like image 115
Oswald Avatar answered Nov 22 '25 16:11

Oswald



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!