How would one go about making a byte[] that is a packet that needs to be run through an RC4 encryption class and then sent to a server?
So let's say I need the packet to stsrt with a string, followed with an int, byte, int, string. How would I create that as a byte array? (Byte[])
Thanks!
OK, so you have a data structure containing strings, integers and bytes, that you want to serialize to a byte array. There are several options:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.