public override void Flush() { WriteSyncResult writeResult = new WriteSyncResult(); this.owner.TryCompleteFlushRequest(writeResult); writeResult.WaitFor(); }
public override void Write(byte[] buffer, int offset, int count) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset >= buffer.Length) { throw new ArgumentOutOfRangeException("offset"); } if (offset + count > buffer.Length) { throw new ArgumentOutOfRangeException("count"); } WriteSyncResult writeResult = new WriteSyncResult(); this.owner.TryCompleteWriteRequest(buffer, offset, count, writeResult); writeResult.WaitFor(); }
public override void Write(byte[] buffer, int offset, int count) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset >= buffer.Length) { throw new ArgumentOutOfRangeException("offset"); } if (offset + count > buffer.Length) { throw new ArgumentOutOfRangeException("count"); } WriteSyncResult writeResult = new WriteSyncResult(); this.owner.TryCompleteWriteRequest(buffer, offset, count, writeResult); writeResult.WaitFor(); }
public override void Flush() { WriteSyncResult writeResult = new WriteSyncResult(); this.owner.TryCompleteFlushRequest(writeResult); writeResult.WaitFor(); }