C/C++ API Reference
Loading...
Searching...
No Matches
pw::channel::TestPacketReaderWriter< Packet > Class Template Referencefinal

Overview

template<typename Packet>
class pw::channel::TestPacketReaderWriter< Packet >

pw::channel::PacketReadWriter implementation for testing use.

Inheritance diagram for pw::channel::TestPacketReaderWriter< Packet >:
pw::channel::Implement< PacketReaderWriter< Packet > >

Public Member Functions

constexpr TestPacketReaderWriter (allocator::Allocator &allocator)
 
span< const Packet > written_packets () const
 Returns all packets that have been written to this packet channel.
 
void EnqueueReadPacket (Packet &&packet)
 Enqueues packets to be returned from future PendRead calls.
 

The documentation for this class was generated from the following file: