G
Guest
Hello, I have a question.
byte[] network = new byte[100];
And I know what in this byte array in position from 4 to 8 it is long value,
and from 10 to 12 is it ushort type.
I need do something like this
long val1 = (long)network[4-8];
ushort val2 = (ushort )network[10-12];
So I need get few bytes from some position and convert them to some value
type.
How can i do this?
byte[] network = new byte[100];
And I know what in this byte array in position from 4 to 8 it is long value,
and from 10 to 12 is it ushort type.
I need do something like this
long val1 = (long)network[4-8];
ushort val2 = (ushort )network[10-12];
So I need get few bytes from some position and convert them to some value
type.
How can i do this?