MCPcopy Create free account
hub / github.com/attermann/microReticulum / debugString

Method debugString

src/microReticulum/Packet.cpp:630–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629#ifndef NDEBUG
630std::string Packet::debugString() const {
631 if (!_object) {
632 return "";
633 }
634 if (_object->_packed) {
635 //unpack();
636 }
637 std::string str;
638 str = "ht=" + std::to_string(_object->_header_type);
639 str += " tt=" + std::to_string(_object->_transport_type);
640 str += " dt=" + std::to_string(_object->_destination_type);
641 str += " pt=" + std::to_string(_object->_packet_type);
642 str += " hp=" + std::to_string(_object->_hops);
643 str += " ti=" + _object->_transport_id.toHex();
644 str += " dh=" + _object->_destination_hash.toHex();
645 str += " ph=" + _object->_packet_hash.toHex();
646 return str;
647}
648std::string Packet::dumpString() const {
649 if (!_object) {
650 return "";

Callers 10

inboundMethod · 0.45
Transport.cppFile · 0.45
reticulum_setupFunction · 0.45
reticulum_setupFunction · 0.45

Calls 1

toHexMethod · 0.80