/// <summary>
 /// Copy construct
 /// </summary>
 /// <param name="buffer">the source buffer array</param>
 public BufferedArray(BufferedArray buffer) 
 {
     if (buffer != null)
     {
         this.data = buffer.data;
         this.position = buffer.position;
     }
 }
Exemple #2
0
 public BGS2Core(SerialPort serial)
 {
     this.serialPort = serial;
     buffer = new BufferedArray(1024);
 }