Ejemplo n.º 1
0
 public BufferedLineReader(ReadBytesDelegate readBytesDelegate, int bufferSize)
 {
     this.readBytesDelegate = readBytesDelegate;
     buffer = new byte[bufferSize];
     nextFreeByte = 0;
     firstUsedByte = -1;
     nextPlaceToStartScan = -1;
 }
Ejemplo n.º 2
0
 public BufferedLineReader(ReadBytesDelegate readBytesDelegate, int bufferSize)
 {
     this.readBytesDelegate = readBytesDelegate;
     buffer               = new byte[bufferSize];
     nextFreeByte         = 0;
     firstUsedByte        = -1;
     nextPlaceToStartScan = -1;
 }
Ejemplo n.º 3
0
 public static DelegateInputStream create(CurPosDelegate c, ReadBytesDelegate r)
 {
     IntPtr cPtr = DbXmlPINVOKE.DelegateInputStream_create(c, r);
     if (!(cPtr == IntPtr.Zero))
     {
         return new DelegateInputStream(cPtr, true);
     }
     return null;
 }
Ejemplo n.º 4
0
        public static DelegateInputStream create(CurPosDelegate c, ReadBytesDelegate r)
        {
            IntPtr cPtr = DbXmlPINVOKE.DelegateInputStream_create(c, r);

            if (!(cPtr == IntPtr.Zero))
            {
                return(new DelegateInputStream(cPtr, true));
            }
            return(null);
        }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public SerialListenerProvider()
 {
     ReadBuffer = new byte[8192];
     _OpenSerialPortCaller = new OpenSerialPortDelegate(OpenSerialPortInBackground);
     _ReadBytesDelegate = new ReadBytesDelegate(ReadBytesInBackground);
 }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public SerialListenerProvider()
 {
     ReadBuffer            = new byte[8192];
     _OpenSerialPortCaller = new OpenSerialPortDelegate(OpenSerialPortInBackground);
     _ReadBytesDelegate    = new ReadBytesDelegate(ReadBytesInBackground);
 }