System::Security::Cryptography::CryptoStream class
Contents
[
Hide
]CryptoStream class
Stream implementation that wraps existing stream with a cryptographic function. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class CryptoStream : public System::IO::Stream
Methods
Method | Description |
---|---|
Close() override | Closes connection. |
CryptoStream(const SharedPtr<System::IO::Stream>&, const SharedPtr<ICryptoTransform>&, CryptoStreamMode) | Constructor. |
Flush() override | Empties buffer into wrapped stream. Does nothing as transform algorithm can be still waiting for more data. |
FlushFinalBlock() | Writes the data which is still in the buffer to stream. |
get_CanRead() const override | Checks if stream is readable. |
get_CanSeek() const override | Checks if stream is seekable. |
get_CanWrite() const override | Checks if stream is writable. |
get_Length() const override | Gets length of stream. Not supported. |
get_Position() const override | Gets current position in stream. Not supported. |
Read(const ArrayPtr<uint8_t>&, int32_t, int32_t) override | Reads data from stream. |
Read(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) override | Reads data from stream. |
Seek(int64_t, IO::SeekOrigin) override | Seeks position in stream. Not supported. |
set_Position(int64_t) override | Seeks position in stream. Not supported. |
SetLength(int64_t) override | Seeks size of stream. Not supported. |
Write(const ArrayPtr<uint8_t>&, int32_t, int32_t) override | Writes data to stream. |
Write(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) override | Writes data to stream. |
Fields
Field | Description |
---|---|
static Null | A stream with no underlying storage. |
See Also
- Class Stream
- Namespace System::Security::Cryptography
- Library Aspose.Font for C++