C# 클래스 NetWrok.HTTP.Zlib.CRC32

Calculates a 32bit Cyclic Redundancy Checksum (CRC) using the same polynomial used by Zip. This type is used internally by DotNetZip; it is generally not used directly by applications wishing to create, read, or manipulate zip archive files.
파일 보기 프로젝트 열기: simonwittber/netwrok-client 1 사용 예제들

공개 메소드들

메소드 설명
ComputeCrc32 ( Int32 W, byte B ) : Int32

Get the CRC32 for the given (word,byte) combo. This is a computation defined by PKzip.

GetCrc32 ( System input ) : Int32

Returns the CRC32 for the specified stream.

GetCrc32AndCopy ( System input, System output ) : Int32

Returns the CRC32 for the specified stream, and writes the input into the output stream.

SlurpBlock ( byte block, int offset, int count ) : void

Update the value for the running CRC32 using the given block of bytes. This is useful when using the CRC32() class in a Stream.

비공개 메소드들

메소드 설명
CRC32 ( ) : System
_InternalComputeCrc32 ( UInt32 W, byte B ) : Int32

메소드 상세

ComputeCrc32() 공개 메소드

Get the CRC32 for the given (word,byte) combo. This is a computation defined by PKzip.
public ComputeCrc32 ( Int32 W, byte B ) : Int32
W System.Int32 The word to start with.
B byte The byte to combine it with.
리턴 System.Int32

GetCrc32() 공개 메소드

Returns the CRC32 for the specified stream.
public GetCrc32 ( System input ) : Int32
input System The stream over which to calculate the CRC32
리턴 System.Int32

GetCrc32AndCopy() 공개 메소드

Returns the CRC32 for the specified stream, and writes the input into the output stream.
public GetCrc32AndCopy ( System input, System output ) : Int32
input System The stream over which to calculate the CRC32
output System The stream into which to deflate the input
리턴 System.Int32

SlurpBlock() 공개 메소드

Update the value for the running CRC32 using the given block of bytes. This is useful when using the CRC32() class in a Stream.
public SlurpBlock ( byte block, int offset, int count ) : void
block byte block of bytes to slurp
offset int starting point in the block
count int how many bytes within the block to slurp
리턴 void