C# Class Qiniu.Util.CRC32

CRC32计算器
Mostrar archivo Open project: qiniu/csharp-sdk Class Usage Examples

Public Methods

Method Description
CRC32 ( ) : System
CheckSumBytes ( byte data ) : UInt32

计算字节数据的crc32值

CheckSumFile ( string filePath ) : UInt32

计算沙盒文件的crc32值

CheckSumSlice ( byte data, int offset, int count ) : UInt32
Sum32 ( ) : UInt32
Update ( UInt32 crc, UInt32 table, byte p, int offset, int count ) : UInt32
Write ( byte p, int offset, int count ) : void

Private Methods

Method Description
MakeTable ( UInt32 poly ) : System.UInt32[]

Method Details

CRC32() public method

public CRC32 ( ) : System
return System

CheckSumBytes() public static method

计算字节数据的crc32值
public static CheckSumBytes ( byte data ) : UInt32
data byte 二进制数据
return System.UInt32

CheckSumFile() public static method

计算沙盒文件的crc32值
public static CheckSumFile ( string filePath ) : UInt32
filePath string 沙盒文件全路径
return System.UInt32

CheckSumSlice() public static method

public static CheckSumSlice ( byte data, int offset, int count ) : UInt32
data byte
offset int
count int
return System.UInt32

Sum32() public method

public Sum32 ( ) : UInt32
return System.UInt32

Update() public static method

public static Update ( UInt32 crc, UInt32 table, byte p, int offset, int count ) : UInt32
crc System.UInt32
table System.UInt32
p byte
offset int
count int
return System.UInt32

Write() public method

public Write ( byte p, int offset, int count ) : void
p byte
offset int
count int
return void