Mercurial > hg > ucis.core
view Util/PipeStream.cs @ 49:7e4dae99f919
USBLib: fix unhandled exception in WinUSB shutdown after failure to open device
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 19 Aug 2013 16:56:50 +0200 |
parents | 28dc7d535036 |
children |
line wrap: on
line source
???using System; namespace UCIS.Util { public class PipeStream : QueuedPacketStream { public override bool CanWrite { get { return !Closed; } } public override void Flush() { } public override void Write(byte[] buffer, int offset, int count) { if (Closed) throw new ObjectDisposedException("PipeStream"); AddReadBufferCopy(buffer, offset, count); } } }