Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

cobs_stream Struct Reference

#include <cobs.h>


Detailed Description

A COBS stream is used to fill a buffer space with COBS-ed data where the input data is not known beforehand but gathered a piece at a time.


Data Fields

enum cobs_magic magic
 Magic number.

gchar * outbuf
 Output buffer start.

gchar * end
 First char beyond output buffer.

gchar * o
 Where next non-NUL data will be written.

gchar * cp
 Where we'll write the code length.

guchar code
 Current code length.

guchar last_code
 Last code we emitted.

gboolean saw_nul
 True if we saw a NUL in the input.

gboolean closed
 True if the stream has been closed.


Field Documentation

gboolean cobs_stream::closed
 

True if the stream has been closed.

guchar cobs_stream::code
 

Current code length.

gchar* cobs_stream::cp
 

Where we'll write the code length.

gchar* cobs_stream::end
 

First char beyond output buffer.

guchar cobs_stream::last_code
 

Last code we emitted.

enum cobs_magic cobs_stream::magic
 

Magic number.

gchar* cobs_stream::o
 

Where next non-NUL data will be written.

gchar* cobs_stream::outbuf
 

Output buffer start.

gboolean cobs_stream::saw_nul
 

True if we saw a NUL in the input.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:11 2006 for Gtk-Gnutella by doxygen 1.3.6