Annotation of truecrypt/platform/stream.h, revision 1.1.1.3

1.1       root        1: /*
                      2:  Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
                      3: 
1.1.1.3 ! root        4:  Governed by the TrueCrypt License 2.6 the full text of which is contained
1.1       root        5:  in the file License.txt included in TrueCrypt binary and source code
                      6:  distribution 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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.