An output stream to transform input data by using a chunk processor(i.e. a chunk encryptor).
More...
#include <ostream.hpp>
|
| ES_API (CPPESSENCE) ostream() |
| Creates an empty instance, of which the initialization is delayed when the open function is called.
|
|
ES_API(CPPESSENCE) ostream(std | ostream (std::string_view path, abstract::chunk_processor processor, openmode mode=out|binary) |
| Creates an instance.
|
|
| ostream (const ostream &)=delete |
|
| ostream (ostream &&) noexcept=delete |
|
| ES_API (CPPESSENCE) ~ostream() override |
|
ostream & | operator= (const ostream &)=delete |
|
ostream & | operator= (ostream &&) noexcept=delete |
|
| ES_API (CPPESSENCE) bool is_open() const noexcept |
| Checks whether the stream is open.
|
|
void | open (std::shared_ptr< std::ostream > output_stream, abstract::chunk_processor processor) |
| Resets all internal states and opens a new output stream to write the transformed data.
|
|
void | open (std::string_view path, abstract::chunk_processor processor, openmode mode=out|binary) |
| Resets all internal states and opens a new file to write the transformed data.
|
|
| ES_API (CPPESSENCE) void close() const |
| Closes the current file or stream.
|
|
An output stream to transform input data by using a chunk processor(i.e. a chunk encryptor).
◆ ostream()
Creates an instance.
- Parameters
-
output_stream | The output stream to receive the transformed data. |
processor | The chunk processor. |
Creates an instance.
- Parameters
-
path | The path of the output file into which the transformed data will be written. |
processor | The chunk processor. |
mode | The open mode of the output file. |
◆ ES_API()
essence::crypto::ostream::ES_API |
( |
CPPESSENCE | | ) |
const |
|
nodiscardnoexcept |
Checks whether the stream is open.
- Returns
- True if the stream is open; otherwise false.
◆ open() [1/2]
Resets all internal states and opens a new output stream to write the transformed data.
- Parameters
-
output_stream | The output stream to receive the transformed data. |
processor | The chunk processor. |
◆ open() [2/2]
void essence::crypto::ostream::open |
( |
std::string_view | path, |
|
|
abstract::chunk_processor | processor, |
|
|
openmode | mode = out|binary ) |
Resets all internal states and opens a new file to write the transformed data.
- Parameters
-
path | The path of the output file into which the transformed data will be written. |
processor | The chunk processor. |
mode | The open mode of the output file. |
The documentation for this class was generated from the following file: