EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
Representing part of an message. More...
#include <eoChunkMessage.h>
Public Member Functions | |
eoChunkMessage (const eoChunkMessage &other) | |
Copy Constructor. More... | |
eoReturn | CopyFrom (eoAbstractMessage const &msg) |
eoReturn | CopyDataFrom (const uint8_t *const src, const uint8_t len) |
Copies len bytes of data to the internal buffer. More... | |
bool | IsReceived () const |
Checks if the chunk of the message has been received. More... | |
eoChunkMessage (uint16_t size) | |
Constructor with defined size. | |
Additional Inherited Members |
Representing part of an message.
this class describes the part of a chained message, this is used in the ChainedMessage to store the storage parts
eoChunkMessage::eoChunkMessage | ( | const eoChunkMessage & | other | ) |
Copy Constructor.
As the eoChained message is used inside a vector and every instance needs an own databuffer a copy constructor is used!
other |
eoReturn eoChunkMessage::CopyDataFrom | ( | const uint8_t *const | src, |
const uint8_t | len | ||
) |
Copies len bytes of data to the internal buffer.
This function will reallocalate the memory itself. The len bytes of data from the src will be copied
src | Source data |
len | x bytes to copy |
eoReturn eoChunkMessage::CopyFrom | ( | eoAbstractMessage const & | msg | ) |
Copies from a message the data, the received flag will be set to true afterwards
msg | an eoMessage to copy from |
|
inline |
Checks if the chunk of the message has been received.