Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
DotZLib.CRC32Checksum Class Reference

Implements a CRC32 checksum generator More...

+ Inheritance diagram for DotZLib.CRC32Checksum:

Public Member Functions

 CRC32Checksum ()
 Initializes a new instance of the CRC32 checksum generator More...
 
 CRC32Checksum (uint initialValue)
 Initializes a new instance of the CRC32 checksum generator with a specified value More...
 
override void Update (byte[] data, int offset, int count)
 Updates the current checksum with part of an array of bytes More...
 
- Public Member Functions inherited from DotZLib.ChecksumGeneratorBase
 ChecksumGeneratorBase ()
 Initializes a new instance of the checksum generator base - the current checksum is set to zero More...
 
 ChecksumGeneratorBase (uint initialValue)
 Initializes a new instance of the checksum generator basewith a specified value More...
 
void Reset ()
 Resets the current checksum to zero More...
 
void Update (byte[] data)
 Updates the current checksum with an array of bytes. More...
 
void Update (string data)
 Updates the current checksum with the data from a string More...
 
void Update (string data, Encoding encoding)
 Updates the current checksum with the data from a string, using a specific encoding More...
 

Additional Inherited Members

- Protected Attributes inherited from DotZLib.ChecksumGeneratorBase
uint _current
 The value of the current checksum More...
 
- Properties inherited from DotZLib.ChecksumGeneratorBase
uint Value [get]
 Gets the current checksum value More...
 
- Properties inherited from DotZLib.ChecksumGenerator
uint Value [get]
 Gets the current value of the checksum More...
 

Detailed Description

Implements a CRC32 checksum generator

Definition at line 104 of file ChecksumImpl.cs.

Constructor & Destructor Documentation

◆ CRC32Checksum() [1/2]

DotZLib.CRC32Checksum.CRC32Checksum ( )
inline

Initializes a new instance of the CRC32 checksum generator

Definition at line 116 of file ChecksumImpl.cs.

◆ CRC32Checksum() [2/2]

DotZLib.CRC32Checksum.CRC32Checksum ( uint  initialValue)
inline

Initializes a new instance of the CRC32 checksum generator with a specified value

Parameters
initialValueThe value to set the current checksum to

Definition at line 122 of file ChecksumImpl.cs.

Member Function Documentation

◆ Update()

override void DotZLib.CRC32Checksum.Update ( byte []  data,
int  offset,
int  count 
)
inlinevirtual

Updates the current checksum with part of an array of bytes

Parameters
dataThe data to update the checksum with
offsetWhere in data to start updating
countThe number of bytes from data to use
Exceptions
ArgumentExceptionThe sum of offset and count is larger than the length of data
NullReferenceExceptiondata is a null reference
ArgumentOutOfRangeExceptionOffset or count is negative.

Implements DotZLib.ChecksumGeneratorBase.

Definition at line 133 of file ChecksumImpl.cs.

References DotZLib.ChecksumGeneratorBase._current, adler32(), and crc32().


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