NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PacketConsumer< SIZE > Class Template Reference

Packet consumer that supports variable sized packets. More...

#include <consumer.h>

Inheritance diagram for PacketConsumer< SIZE >:
Consumer< unsigned, SIZE >

Public Member Functions

unsigned get_buffer (unsigned char *&buffer)
 Get a pointer to a the buffer and return the length of the buffer.
void free_buffer ()
- Public Member Functions inherited from Consumer< unsigned, SIZE >
bool has_data () const
unsigned * get_buffer ()
 Consumer ()

Private Types

typedef Consumer< unsigned, SIZE > Parent

Additional Inherited Members

- Public Attributes inherited from Consumer< unsigned, SIZE >
volatile unsigned _rpos
volatile unsigned _wpos
unsigned _buffer [SIZE]

Detailed Description

template<unsigned SIZE>
class PacketConsumer< SIZE >

Packet consumer that supports variable sized packets.

Member Typedef Documentation

template<unsigned SIZE>
typedef Consumer<unsigned, SIZE> PacketConsumer< SIZE >::Parent
private

Member Function Documentation

template<unsigned SIZE>
void PacketConsumer< SIZE >::free_buffer ( )
inline

Reimplemented from Consumer< unsigned, SIZE >.

template<unsigned SIZE>
unsigned PacketConsumer< SIZE >::get_buffer ( unsigned char *&  buffer)
inline

Get a pointer to a the buffer and return the length of the buffer.


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