Pigweed
C/C++ API Reference
|
Public Member Functions | |
PendingWrite (const PendingWrite &)=delete | |
PendingWrite & | operator= (const PendingWrite &)=delete |
constexpr | PendingWrite (PendingWrite &&other) |
constexpr PendingWrite & | operator= (PendingWrite &&other) |
void | Stage (Packet &&packet) |
size_t | num_packets () const |
Friends | |
class | AnyPacketChannel< Packet > |
Represents a pending write operation. Returned by pw::channel::PacketChannel::PendReadyToWrite
.
|
inline |
Enqueues a packet to be written. Must be called before the PendingWrite
goes out of scope.
Stage
may be called up to num_packets()
times.