C# Class Tsukikage.Util.Crc32

CRC32算出機能を提供します
ファイルを表示 Open project: ttsuki/ttsuki Class Usage Examples

Public Methods

Method Description
CalcCRC32 ( UInt32 crc, byte data ) : UInt32

CRC32を計算する

CalcCRC32 ( UInt32 crc, byte data, int offset, int count ) : UInt32

CRC32を計算する

Update ( byte data ) : void

指定したデータでCRC32の値を更新します。

Update ( byte data, int offset, int count ) : void

指定したデータでCRC32の値を更新します。

Private Methods

Method Description
Crc32 ( ) : System

Method Details

CalcCRC32() public static method

CRC32を計算する
public static CalcCRC32 ( UInt32 crc, byte data ) : UInt32
crc System.UInt32 アップデート対象のCRC値。初回時はCrc32.InitialValueを指定するとよい。
data byte 算出対象のデータ
return System.UInt32

CalcCRC32() public static method

CRC32を計算する
public static CalcCRC32 ( UInt32 crc, byte data, int offset, int count ) : UInt32
crc System.UInt32 アップデート対象のCRC値。初回時はCrc32.InitialValueを指定するとよい。
data byte 算出対象のデータ
offset int 算出を開始する位置
count int 算出するバイト数
return System.UInt32

Update() public method

指定したデータでCRC32の値を更新します。
public Update ( byte data ) : void
data byte 追加計算するデータ
return void

Update() public method

指定したデータでCRC32の値を更新します。
public Update ( byte data, int offset, int count ) : void
data byte 追加計算するデータ
offset int 算出を開始する位置
count int 算出するバイト数
return void