Struct MsgBuffer
Defined in File msgbuffer.hpp
Struct Documentation
-
struct MsgBuffer
Message buffer for internal use in libmavconn.
Public Functions
-
inline MsgBuffer()
-
inline explicit MsgBuffer(const mavlink::mavlink_message_t *msg)
Buffer constructor from mavlink_message_t.
-
inline MsgBuffer(const mavlink::Message &obj, mavlink::mavlink_status_t *status, uint8_t sysid, uint8_t compid)
Buffer constructor for mavlink::Message derived object.
-
inline MsgBuffer(const uint8_t *bytes, ssize_t nbytes)
Buffer constructor for send_bytes()
- Parameters:
nbytes – [in] should be less than MAX_SIZE
-
inline virtual ~MsgBuffer()
-
inline uint8_t *dpos()
-
inline ssize_t nbytes()
Public Static Attributes
-
static constexpr ssize_t MAX_SIZE = MAVLINK_MAX_PACKET_LEN + 16
Maximum buffer size with padding for CRC bytes (280 + padding)
-
inline MsgBuffer()