How do I split a short into its two bytes ?
- by aPoC
Hi.
I have to split up a short into its two bytes. They have to be in Network order.
I need that for a small server telling the current size of the rest packet's data.
List<byte> o = new List<byte>();
o.Add(0x03);
// here this short
o.AddRange(MapData);
o.Add(0xFF);
Send(o);