public BufferedLineReader(ReadBytesDelegate readBytesDelegate, int bufferSize) { this.readBytesDelegate = readBytesDelegate; buffer = new byte[bufferSize]; nextFreeByte = 0; firstUsedByte = -1; nextPlaceToStartScan = -1; }
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; }
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); }