Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PlainPacket Class Reference

#include <PlainPacket.h>

Inheritance diagram for PlainPacket:

Inheritance graph
[legend]
Collaboration diagram for PlainPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PlainPacket (PlainReader *reader, int stopword)
int copyToStopWord (unsigned char *dest, unsigned int &max, unsigned int &discard_head, unsigned int &discard_tail)

Constructor & Destructor Documentation

PlainPacket::PlainPacket PlainReader reader,
int  stopword
 


Member Function Documentation

int PlainPacket::copyToStopWord unsigned char *  dest,
unsigned int &  max,
unsigned int &  discard_head,
unsigned int &  discard_tail
 

Retrieves data, on a bit boundary, and copies it into the given buffer until the stopword is encountered.

Parameters:
dest IN: where to copy the data.
max INOUT: the maximum number of bytes to copy goes into the call, the number of bytes actually copied goes out.
discard_head OUT: the bits that the caller must ignore in the first byte of the copy.
discard_tail OUT: the bits that the caller must ignore in the last byte of the copy.
Returns:
The number of bits that must be ignored in the following call, or an error indication if negative.


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:06 2005 for Komssys by doxygen 1.3.8