|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
#include <publisher.hpp>
Public Member Functions | |
| size_t | capacity () const |
| Result | commit (size_t actual_len) |
Send actual_len bytes. Consumes the loan. | |
| uint8_t * | data () |
| Writable view of the loaned bytes. | |
| const uint8_t * | data () const |
| Result | discard () |
| Abandon without sending. Consumes the loan. | |
| bool | is_valid () const |
| Loan () | |
| Loan (const Loan &)=delete | |
| Loan (Loan &&o) | |
| Loan (void *pub, uint8_t *buf, size_t cap, void *token) | |
| Loan & | operator= (const Loan &)=delete |
| Loan & | operator= (Loan &&o) |
| ~Loan () | |
Phase 124.A.7 — writable slot returned by Publisher::loan. RAII: commit(actual_len) sends + consumes; discard() abandons + consumes; Drop without either calls discard automatically.
|
inline |
|
inline |
|
inline |
Internal constructor — callers use Publisher::loan() not this directly.
|
inline |
Send actual_len bytes. Consumes the loan.
|
inline |
Writable view of the loaned bytes.
|
inline |
Abandon without sending. Consumes the loan.
|
inline |