に変換します。の値のの文字列を配列しています。バイト配列に直接移動したいと思います。どうやってやるの?(バイト値の)文字列配列をバイト配列
//for example
string read="0 1 0 0 0 255 255 255 255";
byte[] bytes=null;
string[] splitted = read.Split(' ');
for(int i=0;i<splitted.Count();i++)
{
int value = Int32.Parse(splitted[i]);
bytes[i] = (byte)value;
}
problem = bytes;
だから、何を試しましたか? –
文字列にバイト値 –
の値がどのように含まれているかを明確にしてください@roryap参照update –