|
| virtual ssize_t | write (const void *data, size_t len)=0 |
| | Main entry point to the data consumption.
|
| |
| virtual int | finalize (int status) |
| | Called once after all data has been written to close the stream and release resources.
|
| |
| ssize_t | write_all (const void *data, size_t len) |
| | Repeatedly writes until all data has been consumed or an error occurs.
|
| |
|
| static const uint8_t * | to_8 (const void *d) |
| | Converts a void pointer to an equivalent byte pointer.
|
| |
| static uint8_t * | to_8 (void *d) |
| | Converts a void pointer to an equivalent byte pointer.
|
| |
Definition at line 45 of file SyncStream.hxx.
◆ ~SyncStream()
| virtual SyncStream::~SyncStream |
( |
| ) |
|
|
inlinevirtual |
◆ finalize()
| virtual int SyncStream::finalize |
( |
int |
status | ) |
|
|
inlinevirtual |
Called once after all data has been written to close the stream and release resources.
Return 0 on success, <0 on failure.
- Parameters
-
| status | is an error code seen by wrapping streams. Default 0 (OK), if negative, streams might want to roll back their changes. |
Reimplemented in CCMHelper::DecryptorStream, WrappedStream, and MinWriteStream.
Definition at line 66 of file SyncStream.hxx.
◆ to_8() [1/2]
| static const uint8_t * SyncStream::to_8 |
( |
const void * |
d | ) |
|
|
inlinestaticprotected |
Converts a void pointer to an equivalent byte pointer.
Definition at line 97 of file SyncStream.hxx.
◆ to_8() [2/2]
| static uint8_t * SyncStream::to_8 |
( |
void * |
d | ) |
|
|
inlinestaticprotected |
Converts a void pointer to an equivalent byte pointer.
Definition at line 103 of file SyncStream.hxx.
◆ write()
| virtual ssize_t SyncStream::write |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
pure virtual |
◆ write_all()
| ssize_t SyncStream::write_all |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Repeatedly writes until all data has been consumed or an error occurs.
Returns a short write only when an EOF occured.
Definition at line 73 of file SyncStream.hxx.
The documentation for this class was generated from the following file: