public override int Read(byte[] buffer, int offset, int count)
{
if (_Disposed) throw new ObjectDisposedException(GetType().Name);
if (buffer==null) throw new ArgumentNullException("buffer");
if (offset<0 || offset>buffer.Length) throw new ArgumentOutOfRangeException("offset");
if (count<0 || count>buffer.Length-offset) throw new ArgumentOutOfRangeException("count");
if (_Offset == _Bytes.Length) return 0;
int chkOffset = (int)_Offset;
count = Math.Min(count, _Bytes.Length - chkOffset);
System.Buffer.BlockCopy(_Bytes, chkOffset, buffer, offset, count);
chkOffset += count;
_Offset = chkOffset;
return count;
}
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, Object state)