OpenLCP
0.2.0
|
Input/Output stream of nested PDU. More...
#include <pdu-stream.h>
Input/Output stream of nested PDU.
ACN::PDU::pdu_stream::pdu_stream | ( | uint8_t * | p, |
std::streamsize | l | ||
) |
p | the packet buffer |
l | buffer length |
uint32_t ACN::PDU::pdu_stream::available | ( | ) |
uint8_t * ACN::PDU::pdu_stream::base | ( | ) |
uint8_t * ACN::PDU::pdu_stream::data | ( | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const int16_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const int32_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const int64_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const int8_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const pdu_stream_object & | obj | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const uint16_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const uint32_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const uint64_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const uint8_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator<< | ( | const UUID::uuid & | uuid | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | int16_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | int32_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | int64_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | int8_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | pdu_stream_object & | obj | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | uint16_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | uint32_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | uint64_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | uint8_t & | val | ) |
pdu_stream & ACN::PDU::pdu_stream::operator>> | ( | UUID::uuid & | uuid | ) |
void ACN::PDU::pdu_stream::readString | ( | std::string & | str, |
const int | fixed_length = 0 |
||
) |
str | std::string to which the read string will be appended. |
fixed_length | this many bytes will be read from the stream. If 0, all available bytes on the stream will be used to construct the appended string. |
|
inline |
readType
uint32_t ACN::PDU::pdu_stream::size | ( | ) |
void ACN::PDU::pdu_stream::writeString | ( | const std::string & | str, |
const int | fixed_length = 0 |
||
) |
str | |
fixed_length | write this length to the stream, padding with null if str is shorter than fixed_length. If 0 will write only the contents of str. |
|
inline |
writeType
val |