Example #1
0
 public SerialInputStream(UsbSerialInterface localdevice)
 {
     this.device     = localdevice;
     this.buffer     = new byte[maxBufferSize];
     this.pointer    = 0;
     this.bufferSize = -1;
 }
Example #2
0
 public SerialInputStream(UsbSerialInterface device, int maxBufferSize)
 {
     this.device        = device;
     this.maxBufferSize = maxBufferSize;
     this.buffer        = new byte[this.maxBufferSize];
     this.pointer       = 0;
     this.bufferSize    = -1;
 }
Example #3
0
 public SerialOutputStream(UsbSerialInterface device)
 {
     this.device = device;
 }