![]() |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
encoding messages to be sent More...
#include <messaging.hpp>
Public Member Functions | |
messaging_encode () | |
constructor | |
messaging_encode (const messaging_encode &ref)=default | |
messaging_encode (messaging_encode &&ref) noexcept=default | |
messaging_encode & | operator= (const messaging_encode &ref)=default |
messaging_encode & | operator= (messaging_encode &&ref) noexcept=default |
void | clear () |
reset the object to its initial state | |
void | set_type (msg_type val) |
define the type of the message to generate | |
void | set_infinint (const infinint &val) |
add infininit attribute | |
void | set_U_I (U_I val) |
add U_I attribute | |
void | set_string (const std::string &val) |
add string attribute | |
void | set_bool (bool val) |
set boolean attribute | |
void | set_label (const label &val) |
set label attribute | |
void | reset_get_block () |
set the read block pointer to the first block | |
bool | get_block (char *ptr, unsigned int &size) |
Private Attributes | |
msg_type | msgt |
memory_file | buffer |
encoding messages to be sent
Definition at line 132 of file messaging.hpp.
bool libdar::messaging_encode::get_block | ( | char * | ptr, |
unsigned int & | size | ||
) |
read the next block
[in] | ptr | is the address where to write the next block of the message |
[in,out] | size | is the maximum amount of byte that can be written to ptr and is modified by this call to the effective number of byte written to ptr |