Link to home
Start Free TrialLog in
Avatar of mileyja
mileyja

asked on

How to Convert a BYTE * from C++ to byte[] in C#

     PacketBuffer = (BYTE*)malloc(PACKET_BUFFER_SIZE);
for anyone who needs to know PACKET_BUFFER_SIZE = 256000

what is the equivalent c# declaration??
Avatar of the_b1ackfox
the_b1ackfox
Flag of United States of America image

Byte[] PACKET_BUFFER_SIZE = new Byte[256000];
ASKER CERTIFIED SOLUTION
Avatar of LordOfPorts
LordOfPorts
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mileyja
mileyja

ASKER

Wow that last answer was in perfect context, I couldn't find a difference between byte and Btye