DUNE: Uniform Navigational Environment
2.6.0-rc4
|
Static Public Member Functions | |
static uint16_t | serialize (const Message *msg, uint8_t *bfr, uint16_t size) |
static uint16_t | serialize (const Message *msg, Utils::ByteBuffer &bfr) |
static uint16_t | serialize (const Message *msg, std::ostream &ofs) |
static Message * | deserialize (const uint8_t *bfr, uint16_t bfr_len, Message *msg=NULL) |
static Message * | deserialize (std::istream &ifs) |
static Message * | deserialize (std::istream &ifs, Utils::ByteBuffer &bfr) |
static uint16_t | serializeHeader (const Message *msg, uint8_t *bfr, uint16_t bfr_len) |
static void | deserializeHeader (Header &hdr, const uint8_t *bfr, uint16_t bfr_len) |
static Message * | deserializePayload (const Header &hdr, const uint8_t *bfr, uint16_t bfr_len, Message *msg) |
|
static |
References deserializeHeader(), deserializePayload(), and DUNE::IMC::Header::size.
Referenced by DUNE::Network::FragmentedMessage::setFragment().
|
static |
References deserializeHeader(), deserializePayload(), and DUNE::IMC::Header::size.
|
static |
|
static |
References DUNE::Utils::ByteCopy::copy(), DUNE::IMC::Header::dst, DUNE::IMC::Header::dst_ent, DUNE::IMC::Header::mgid, DUNE::Utils::ByteCopy::rcopy(), DUNE::IMC::Header::size, DUNE::IMC::Header::src, DUNE::IMC::Header::src_ent, DUNE::IMC::Header::sync, and DUNE::IMC::Header::timestamp.
Referenced by deserialize(), and DUNE::IMC::Parser::parse().
|
static |
References DUNE::Algorithms::CRC16::compute(), DUNE::Utils::ByteCopy::copy(), DUNE::IMC::Message::deserializeFields(), DUNE::IMC::Header::dst, DUNE::IMC::Header::dst_ent, DUNE::IMC::Message::getId(), DUNE::IMC::Header::mgid, DUNE::IMC::Factory::produce(), DUNE::Utils::ByteCopy::rcopy(), DUNE::IMC::Message::reverseDeserializeFields(), DUNE::IMC::Message::setDestination(), DUNE::IMC::Message::setDestinationEntity(), DUNE::IMC::Message::setSource(), DUNE::IMC::Message::setSourceEntity(), DUNE::IMC::Message::setTimeStamp(), DUNE::IMC::Header::size, DUNE::IMC::Header::src, DUNE::IMC::Header::src_ent, DUNE::IMC::Header::sync, and DUNE::IMC::Header::timestamp.
Referenced by deserialize(), and DUNE::IMC::Parser::parse().
|
static |
Serialize a message object.
[in] | msg | message object. |
[out] | bfr | destination buffer. |
[in] | size | destination buffer size. |
References DUNE::Algorithms::CRC16::compute(), DUNE::IMC::Message::getSerializationSize(), DUNE::IMC::serialize(), DUNE::IMC::Message::serializeFields(), and serializeHeader().
Referenced by DUNE::Tasks::SimpleTransport::consume(), DUNE::Network::Fragments::Fragments(), and serialize().
|
static |
Serialize a message object.
[in] | msg | message object. |
[out] | bfr | destination buffer. |
References DUNE::Utils::ByteBuffer::getBuffer(), DUNE::IMC::Message::getSerializationSize(), serialize(), and DUNE::Utils::ByteBuffer::setSize().
|
static |
Serialize a message object.
[in] | msg | message object. |
[out] | ofs | destination output stream. |
References DUNE::IMC::Message::getSerializationSize(), and serialize().
|
static |
References DUNE::IMC::Message::getDestination(), DUNE::IMC::Message::getDestinationEntity(), DUNE::IMC::Message::getId(), DUNE::IMC::Message::getPayloadSerializationSize(), DUNE::IMC::Message::getSource(), DUNE::IMC::Message::getSourceEntity(), DUNE::IMC::Message::getTimeStamp(), and DUNE::IMC::serialize().
Referenced by serialize().