Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

hyperblkcodec.h File Reference

#include "options.h"

Include dependency graph for hyperblkcodec.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void hyperblockprotect (const char *blks, char *protblks)
 write error protection info blks: blocks to protect, hblen*blklen bytes protblks: protection info, hbcorr*blklen bytes

bool hyperblockcorrect (char *blks, const char *protblks)
 reconstruct blocks with error protection info blks: blocks to correct, hblen*blklen bytes protblks: protection info, hbcorr*blklen bytes corrects blks; returns true iff block could be corrected or is errorfree.


Function Documentation

bool hyperblockcorrect char *  blks,
const char *  protblks
 

reconstruct blocks with error protection info blks: blocks to correct, hblen*blklen bytes protblks: protection info, hbcorr*blklen bytes corrects blks; returns true iff block could be corrected or is errorfree.

Definition at line 49 of file hyperblkcodec.cc.

References gfblklen, hbcorr, hblen, and setifchanged().

Referenced by checkErrorProtection(), and correctfile().

Here is the call graph for this function:

void hyperblockprotect const char *  blks,
char *  protblks
 

write error protection info blks: blocks to protect, hblen*blklen bytes protblks: protection info, hbcorr*blklen bytes

Definition at line 19 of file hyperblkcodec.cc.

References gfblklen, hbcorr, and hblen.

Referenced by checkErrorProtection(), and protectfile().


Generated on Tue Dec 30 12:07:38 2003 for ErrorProtect by doxygen 1.3.2