T
Tony Johansson
Hi!
If I have some bytes that are represented in hex like this.
12, bd,8f,7e,4e,4d. How do I assign all these bytes to a byte array ?
If the bytes were represented in decimal I would have been able to use this
statement
byte[] myBytes = new byte[]{ here I could have specified all the bytes with
comma in between };
But now when I have hex it's not possible. I could translate the hax value
into decimal but I hope there must be a better way.
//Tony
If I have some bytes that are represented in hex like this.
12, bd,8f,7e,4e,4d. How do I assign all these bytes to a byte array ?
If the bytes were represented in decimal I would have been able to use this
statement
byte[] myBytes = new byte[]{ here I could have specified all the bytes with
comma in between };
But now when I have hex it's not possible. I could translate the hax value
into decimal but I hope there must be a better way.
//Tony