t_manber_data Struct Reference

Everything needed to calculate manber-hashes out of a stream. More...

Data Fields

struct estatsts
 The entry this calculation is for.
svn_stream_t * input
 The stream we're filtering.
off_t last_fpos
 Start of the current block.
off_t fpos
 The current position in the file.
apr_md5_ctx_t full_md5_ctx
 MD5-Context of full file.
md5_digest_t full_md5
 MD5 of full file.
apr_md5_ctx_t block_md5_ctx
 MD5-Context of current block.
md5_digest_t block_md5
 MD5 of last block.
int manber_fd
 The file descriptor where the manber-block-MD5s will be written to.
AC_CV_C_UINT32_T state
 The internal manber-state.
AC_CV_C_UINT32_T last_state
 The previous manber-state.
int bktrk_bytes
 Count of bytes in backtrack buffer.
int bktrk_last
 The last byte in the rotating backtrack-buffer.
unsigned char backtrack [CS__MANBER_BACKTRACK]
 The backtrack buffer.
int data_bits
 Flag to see whether we're in a zero-bytes block.

Detailed Description

Everything needed to calculate manber-hashes out of a stream.

Definition at line 39 of file checksum.c.


Field Documentation

unsigned char t_manber_data::backtrack[CS__MANBER_BACKTRACK]

The backtrack buffer.

Definition at line 73 of file checksum.c.

Referenced by cs___end_of_block().

Count of bytes in backtrack buffer.

Definition at line 69 of file checksum.c.

Referenced by cs___end_of_block().

The last byte in the rotating backtrack-buffer.

Definition at line 71 of file checksum.c.

Referenced by cs___end_of_block().

MD5 of last block.

Definition at line 58 of file checksum.c.

Referenced by cs___end_of_block(), cs___update_manber(), and cs__compare_file().

MD5-Context of current block.

Definition at line 56 of file checksum.c.

Referenced by cs___end_of_block().

Flag to see whether we're in a zero-bytes block.

If there are large blocks with only \0 in them, we don't CRC or MD5 them - just output as zero blocks with a MD5 of \0*16. Useful for sparse files.

Definition at line 78 of file checksum.c.

Referenced by cs___end_of_block().

The current position in the file.

Is always >= last_fpos.

Definition at line 48 of file checksum.c.

Referenced by cs___end_of_block(), cs___manber_data_init(), cs___mnbs_close(), cs___update_manber(), and cs__compare_file().

MD5 of full file.

Definition at line 53 of file checksum.c.

Referenced by cs___finish_manber().

MD5-Context of full file.

Definition at line 51 of file checksum.c.

Referenced by cs___end_of_block(), cs___finish_manber(), and cs___manber_data_init().

svn_stream_t* t_manber_data::input

The stream we're filtering.

Definition at line 44 of file checksum.c.

Referenced by cs___mnbs_close(), cs___mnbs_read(), cs___mnbs_write(), and cs__new_manber_filter().

Start of the current block.

Definition at line 46 of file checksum.c.

Referenced by cs___manber_data_init(), and cs___update_manber().

AC_CV_C_UINT32_T t_manber_data::last_state

The previous manber-state.

Definition at line 67 of file checksum.c.

Referenced by cs___end_of_block(), cs___update_manber(), and cs__compare_file().

The file descriptor where the manber-block-MD5s will be written to.

Definition at line 61 of file checksum.c.

Referenced by cs___manber_data_init(), cs___mnbs_close(), and cs___update_manber().

AC_CV_C_UINT32_T t_manber_data::state

The internal manber-state.

Definition at line 65 of file checksum.c.

Referenced by cs___end_of_block().

struct estat* t_manber_data::sts [read]

The entry this calculation is for.

Definition at line 42 of file checksum.c.

Referenced by cs___finish_manber(), cs___manber_data_init(), and cs___update_manber().


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

Generated for fsvs by  doxygen 1.6.1