IdeaBlade DevForce 2010 Help Reference
UpdateCRC(Byte,Int32) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Crc Namespace > CRC32 Class > UpdateCRC Method : UpdateCRC(Byte,Int32) Method



b
the byte to include into the CRC.
n
the number of times that byte should be repeated.
Process a run of N identical bytes into the CRC.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub UpdateCRC( _
   ByVal b As Byte, _
   ByVal n As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As CRC32
Dim b As Byte
Dim n As Integer
 
instance.UpdateCRC(b, n)
C# 
public void UpdateCRC( 
   byte b,
   int n
)
C++/CLI 
public:
void UpdateCRC( 
   byte b,
   int n
) 

Parameters

b
the byte to include into the CRC.
n
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.

Requirements

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

See Also

© 2013 All Rights Reserved.