The goal is to get a byte[16] where the first element is hex value 55 and the second element is hex value AA. And the other 14 are hex value 0.
I tried
byte[] outStream = System.Text.Encoding.UTF8.GetBytes("55 AA 00 00 00 00 00 00 00 00 00 00 00 00 00 00");
but this fills the byte[] with the ascii values, not the hex values.
I tried
byte[] outStream = new byte[16];
outStream[0] = byte.Parse("55");
outStream[1] = byte.Parse("AA");
for(int i=2; i<16; i++)
{
outStream[i] = byte.Parse("00");
}
but this doesn't work either. It doesn't give the hex values, but rather the integer values which crashes on the AA since it is not a parsable int.
Any help would be appreciated.