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.AdlerChecksum Class Reference

Implements a checksum generator that computes the Adler checksum on data More...

+ Inheritance diagram for DotZLib.AdlerChecksum:

Public Member Functions

 AdlerChecksum ()
 Initializes a new instance of the Adler checksum generator More...
 
 AdlerChecksum (uint initialValue)
 Initializes a new instance of the Adler 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 checksum generator that computes the Adler checksum on data

Definition at line 155 of file ChecksumImpl.cs.

Constructor & Destructor Documentation

◆ AdlerChecksum() [1/2]

DotZLib.AdlerChecksum.AdlerChecksum ( )
inline

Initializes a new instance of the Adler checksum generator

Definition at line 167 of file ChecksumImpl.cs.

◆ AdlerChecksum() [2/2]

DotZLib.AdlerChecksum.AdlerChecksum ( uint  initialValue)
inline

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

Parameters
initialValueThe value to set the current checksum to

Definition at line 173 of file ChecksumImpl.cs.

Member Function Documentation

◆ Update()

override void DotZLib.AdlerChecksum.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 184 of file ChecksumImpl.cs.

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


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