こんにちは私は次のような構造を持っています
private struct MessageFormat
{
public byte[] Header; //start of message
public byte Fragmentation; //single packet or not
public byte Encryption; //encrypted message
public byte[] Authentication; //password
public byte[] Flag; //to locate end of auth
public byte[] Data; //info
public byte[] Trailer; //end of message
}
すべてのフィールドにデータを入力した後、MessageFormat 全体を 1 バイト配列 [] に変換する便利な方法はありますか?