---
name: "ost_CRC32Digest"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_CRC32Digest"
---

# ost\_CRC32Digest(3)

A crc32 collection/computation hash accumulator class.

## NAME

ost::CRC32Digest - A crc32 collection/computation hash accumulator class.

## SYNOPSIS

`#include <digest.h>`

Inherits **ost::Digest**.

### Public Member Functions

**CRC32Digest** ()\
 **CRC32Digest** (const **CRC32Digest** &crc)\
 void **initDigest** (void)\
 unsigned **getSize** (void)\
 **operator const uint32** () const\
 **uint32** **getDigest** (void)\
 unsigned **getDigest** (unsigned char \*buffer)\
 void **putDigest** (const unsigned char \*buffer, unsigned length)\
 **CRC32Digest** & **operator=** (const **CRC32Digest** &right)\

### Protected Member Functions

unsigned char **overflow** (unsigned char octet)\
 std::ostream & **strDigest** (std::ostream &os)\

## Detailed Description

A crc32 collection/computation hash accumulator class.

**Author**

Kevin Kraatz kraatz@arlut.utexas.edu

crc32 computation hash.

**Examples** **crc32.cpp**.

## Constructor & Destructor Documentation

### ost::CRC32Digest::CRC32Digest ()

### ost::CRC32Digest::CRC32Digest (const CRC32Digest & crc)

## Member Function Documentation

### unsigned ost::CRC32Digest::getDigest (unsigned char \* buffer)` [virtual]`

Implements **ost::Digest**.

### uint32 ost::CRC32Digest::getDigest (void)` [inline]`

**Examples** **crc32.cpp**.

### unsigned ost::CRC32Digest::getSize (void)` [inline]`, ` [virtual]`

Implements **ost::Digest**.

### void ost::CRC32Digest::initDigest (void)` [virtual]`

Implements **ost::Digest**.

### ost::CRC32Digest::operator const uint32 () const` [inline]`

### CRC32Digest& ost::CRC32Digest::operator= (const CRC32Digest & right)

### unsigned char ost::CRC32Digest::overflow (unsigned char octet)` [protected]`

### void ost::CRC32Digest::putDigest (const unsigned char \* buffer, unsigned length)` [virtual]`

Implements **ost::Digest**.

**Examples** **crc32.cpp**.

### std::ostream& ost::CRC32Digest::strDigest (std::ostream & os)` [protected]`, ` [virtual]`

Implements **ost::Digest**.

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
