public byte[] Serialize() { var result = new byte[] { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00 }; result = ArrayUtil.ConcatArrays(result, BitConverter.GetBytes(Size).Reverse().ToArray()); return(result); }
public byte[] Serialize() { //Header var result = new byte[] { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x00, 0x00, 0x00, 0x00 }; //Bandwidth value result = ArrayUtil.ConcatArrays(result, BitConverter.GetBytes(Size).Reverse().ToArray()); //Dynamic result = ArrayUtil.ConcatArrays(result, new byte[] { 0x02 }); return(result); }