Visual Basic (Declaration) | |
---|---|
Public Overloads Sub UpdateCRC( _ ByVal b As Byte, _ ByVal n As Integer _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CRC32 Dim b As Byte Dim n As Integer instance.UpdateCRC(b, n) |
Parameters
- b
- the byte to include into the CRC.
- n
- the number of times that byte should be repeated.
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family