Update README.md
[nemesis.git] / Platform / Stream.h
1 /*
2  Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
3
4  Governed by the TrueCrypt License 3.0 the full text of which is contained in
5  the file License.txt included in TrueCrypt binary and source code distribution
6  packages.
7 */
8
9 #ifndef TC_HEADER_Platform_Stream
10 #define TC_HEADER_Platform_Stream
11
12 #include "PlatformBase.h"
13 #include "Buffer.h"
14
15 namespace TrueCrypt
16 {
17         class Stream
18         {
19         public:
20                 virtual ~Stream () { }
21                 virtual uint64 Read (const BufferPtr &buffer) = 0;
22                 virtual void ReadCompleteBuffer (const BufferPtr &buffer) = 0;
23                 virtual void Write (const ConstBufferPtr &data) = 0;
24
25         protected:
26                 Stream () { };
27
28         private:
29                 Stream (const Stream &);
30                 Stream &operator= (const Stream &);
31         };
32 }
33
34 #endif // TC_HEADER_Platform_Stream
This page took 0.052196 seconds and 3 git commands to generate. Download a nemesis OSX (sierra+high sierra, tested/working) binary, with fuse-ext3 via e2fsprogs, at this link. application and installer are signed by screwjack, llc. must install fuse with macFUSE layer first.