31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ool<br />

C.checksum is valid( ) returns whether C has a valid checksum.<br />

string C.get checksum as hex string( )<br />

returns the checksum for the stream that has been<br />

processed last as hexadecimal string.<br />

string C.check(string str) computes a checksum for a string. (Sets source and<br />

target stream to nil.)<br />

void C.set checksums in stream flag(bool sums in stream, uint32 blocksize = 0)<br />

bool C.get checksums in stream flag( )<br />

sets the checksums in stream flag and the block size.<br />

returns the checksums in stream flag.<br />

uint32 C.get block size( ) returns the current block size.<br />

9.14 CRC32 Checksum ( CRC32Coder )<br />

1. Definition<br />

<strong>The</strong> class CRC32Coder computes CRC32 checksums (see ISO 3309 and ITU-T V.42 for<br />

a formal specification).<br />

#include < <strong>LEDA</strong>/coding/checksum.h ><br />

9.15 CRC-CCITT Checksum ( CCITTCoder )<br />

1. Definition<br />

<strong>The</strong> class CCITTCoder computes CRC-CCITT checksums (see ISO 3309).<br />

#include < <strong>LEDA</strong>/coding/checksum.h ><br />

9.16 Adler32 Checksum ( Adler32Coder )<br />

1. Definition<br />

<strong>The</strong> class Adler32Coder computes Adler32 checksums (see RFC 1950, ZLIB specification<br />

version 3.3).<br />

#include < <strong>LEDA</strong>/coding/checksum.h >

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!