9 #ifndef _CRYPTO_STREAMS_LIB_SECRETSTREAM_H_
10 #define _CRYPTO_STREAMS_LIB_SECRETSTREAM_H_
13 #include "CryptoAPI.h"
20 virtual std::shared_future<int64_t>ReadAsync(uint8_t *pbBuffer,
23 std::launch launchType)
25 virtual std::shared_future<int64_t>WriteAsync(
const uint8_t *cpbBuffer,
28 std::launch launchType)
30 virtual std::future<bool>FlushAsync(std::launch launchType)
override;
33 virtual int64_t Read(uint8_t *pbBuffer,
34 int64_t cbBuffer)
override;
35 virtual int64_t Write(
const uint8_t *cpbBuffer,
36 int64_t cbBuffer)
override;
37 virtual bool Flush()
override;
39 virtual SharedStream Clone() = 0;
41 virtual void Seek(uint64_t u64Position)
override;
42 virtual bool CanRead()
const override;
43 virtual bool CanWrite()
const override;
44 virtual uint64_t Position()
override;
45 virtual uint64_t Size()
override;
46 virtual void Size(uint64_t u64Value)
override;
50 #endif // ifndef _CRYPTO_STREAMS_LIB_SECRETSTREAM_H_
Definition: BlockBasedProtectedStream.cpp:13
Base interface for protected streams.
Definition: IStream.h:34
Definition: ICryptoStream.h:17