view Util/PipeStream.cs @ 50:556b4fb511bd

Added HWLib and USBLib functions to support USB Driver Installer
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 30 Sep 2013 19:23:09 +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);
		}
	}
}