public RS485PacketManager(RS485_dll.Voodoo.Libraries.RS485Library.RS485Terminal.InputData input, int size, bool isRawProcess)
 {
     this.input = input;
     this.size = size;
     this.isRawProcess = isRawProcess;
 }
 public static List<RS485Packet> ProcessInputData(RS485_dll.Voodoo.Libraries.RS485Library.RS485Terminal.InputData input, int size)
 {
     List<RS485Packet> result = new List<RS485Packet>();
     while (input.Data.Length != 0)
     {
         if (size > input.Data.Length)
         {
             size = input.Data.Length;
         }
         String packetData = input.Data.Substring(0, size);
         input.Data = input.Data.Substring(size);
         RS485Packet packet = new RS485Packet(input.Source, input.Current, input.Destination, input.Priority, RS485Packet.CommandEnum.Data, packetData);
         result.Add(packet);
     }
     return result;
 }
 public RS485PacketManager(RS485_dll.Voodoo.Libraries.RS485Library.RS485Terminal.InputData input, int size)
 {
     this.input = input;
     this.size = size;
 }