encoder_t Struct Reference

Structure for an encoding process, with svn_stream_t input. More...

#include <helper.h>

Data Fields

svn_stream_t * orig
 Our datasource/sink.
md5_digest_toutput_md5
 Where to put the final md5.
apr_md5_ctx_t md5_ctx
 The un-encoded data digest (context).
apr_size_t bytes_left
 How many bytes are left to send in this buffer.
pid_t child
 PID of child, for waitpid().
int is_writer
 Whether we're writing or reading.
int pipe_in
 STDIN filehandle for child.
int pipe_out
 STDOUT filehandle for child.
int eof
 Whether we can get more data.
int data_pos
 Where unsent data starts.
char buffer [ENCODE_BLOCKSIZE]
 The buffer.

Detailed Description

Structure for an encoding process, with svn_stream_t input.

When we shall give data, we have to feed data. If not all data can be taken, we have to buffer the rest. (We have to read some data, but don't know how much we can send further down the chain - so we have to buffer).

Definition at line 100 of file helper.h.


Field Documentation

char encoder_t::buffer[ENCODE_BLOCKSIZE]

The buffer.

Definition at line 127 of file helper.h.

Referenced by hlp___encode_read(), and hlp___encode_write().

How many bytes are left to send in this buffer.

Definition at line 110 of file helper.h.

Referenced by hlp___encode_read(), hlp___encode_write(), and hlp__encode_filter().

PID of child, for waitpid().

Definition at line 113 of file helper.h.

Referenced by hlp___encode_close(), hlp___encode_read(), hlp___encode_write(), and hlp__encode_filter().

Where unsent data starts.

Definition at line 124 of file helper.h.

Referenced by hlp___encode_read(), and hlp___encode_write().

Whether we can get more data.

Definition at line 122 of file helper.h.

Referenced by hlp___encode_read(), hlp___encode_write(), and hlp__encode_filter().

Whether we're writing or reading.

Definition at line 116 of file helper.h.

Referenced by hlp___encode_close(), hlp___encoder_waiter(), and hlp__encode_filter().

apr_md5_ctx_t encoder_t::md5_ctx

The un-encoded data digest (context).

Definition at line 108 of file helper.h.

Referenced by hlp___encode_close(), hlp___encode_read(), hlp___encode_write(), and hlp__encode_filter().

svn_stream_t* encoder_t::orig

Our datasource/sink.

Definition at line 102 of file helper.h.

Referenced by hlp___encode_close(), hlp___encode_read(), hlp___encode_write(), and hlp__encode_filter().

Where to put the final md5.

Definition at line 105 of file helper.h.

Referenced by ci__nondir(), hlp___encode_close(), hlp__encode_filter(), rev__get_text_to_stream(), and up__apply_textdelta().

STDIN filehandle for child.

Definition at line 118 of file helper.h.

Referenced by hlp___encode_close(), hlp___encode_read(), hlp___encode_write(), hlp___encoder_waiter(), and hlp__encode_filter().

STDOUT filehandle for child.

Definition at line 120 of file helper.h.

Referenced by hlp___encode_read(), hlp___encode_write(), hlp___encoder_waiter(), and hlp__encode_filter().


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

Generated for fsvs by  doxygen 1.6.1