Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pw::channel::TestPacketReaderWriter< Packet > Class Template Referencefinal

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

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.
 

Detailed Description

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

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


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