UpdateCRC Method (b, n)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateCRC Method (b, n)
ReferenceIonic.CrcCRC32UpdateCRC(Byte, Int32)
Process a run of N identical bytes into the CRC.
Declaration Syntax
C# Visual Basic Visual C++
public void UpdateCRC(
	byte b,
	int n
)
Public Sub UpdateCRC ( _
	b As Byte, _
	n As Integer _
)
public:
void UpdateCRC(
	unsigned char b, 
	int n
)
Parameters
b (Byte)
the byte to include into the CRC.
n (Int32)
the number of times that byte should be repeated.
Remarks

This method serves as an optimization for updating the CRC when a run of identical bytes is found. Rather than passing in a buffer of length n, containing all identical bytes b, this method accepts the byte value and the length of the (virtual) buffer - the length of the run.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)