source: trunk/CrypPluginBase/IO/ICryptoolStream.cs

Last change on this file was 8983, checked in by kopal, 3 months ago

Complete CrypTool 2 project

  • renamed "Cryptool" namespace to "CrypTool" namespace
File size: 1.4 KB
Line 
1/*
2   Copyright 2010 Matthäus Wander, University of Duisburg-Essen
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15*/
16
17namespace CrypTool.PluginBase.IO
18{
19    /// <summary>
20    /// ICrypToolStream reference to membuffer/swapfile.
21    /// ICrypToolStream instances can be passed safely to other plugins or components.
22    /// To create a new ICrypToolStream, please use CStreamWriter.
23    ///
24    /// <para>You MAY create 1 to n readers upon one ICrypToolStream. They do not interfere.
25    /// You MAY pass the ICrypToolStream object safely to other components. They can create new
26    /// readers, but not modify the stream.</para>
27    ///
28    /// <para>For more usage notes, see CStreamWriter and CStreamReader.</para>
29    /// </summary>
30    public interface ICrypToolStream
31    {
32        CStreamReader CreateReader();
33
34        long Length
35        {
36            get;
37        }
38    }
39}
Note: See TracBrowser for help on using the repository browser.