Class ZipCrc32
Crc32 implementation used in zip archive to verify data correctness.
Inherited Members
Namespace: Syncfusion.Compression.Zip
Assembly: Syncfusion.Compression.NET.dll
Syntax
public class ZipCrc32
Constructors
ZipCrc32()
Declaration
public ZipCrc32()
Methods
ComputeCrc(byte[], int, int, uint)
Computes crc-32 value for the buffer.
Declaration
[CLSCompliant(false)]
public static uint ComputeCrc(byte[] buffer, int offset, int length, uint startCrc)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | buffer | Buffer to compute crc-32 for. |
| int | offset | Offset to the data start. |
| int | length | Data length in bytes. |
| uint | startCrc | Initial crc-32 value. |
Returns
| Type | Description |
|---|---|
| uint | Updated crc-32 value. |
ComputeCrc(Stream, int)
Computes crc-32 value for the stream.
Declaration
[CLSCompliant(false)]
public static uint ComputeCrc(Stream stream, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to compute crc-32 for. |
| int | length | Data length in bytes. |
Returns
| Type | Description |
|---|---|
| uint | Crc-32 value. |
EvaluateTable(uint)
Evaluates crc table.
Declaration
[CLSCompliant(false)]
public static uint[] EvaluateTable(uint crcNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | crcNumber | "Magic" number. |
Returns
| Type | Description |
|---|---|
| uint[] | Create table. |