C# 클래스 Hugula.Update.CrcCheck

파일 보기 프로젝트 열기: tenvick/hugula

공개 메소드들

메소드 설명
Add ( string key, uint crc ) : void
CheckCrc ( string key, uint crc ) : bool

crc校验 1 crc==0 通过。 2 如果校验列表没值通过。

CheckLocalFileCrc ( string path, uint &fileCrc ) : bool

本地文件crc强制校验, 1 如果校验列表没值不通过。 1 文件不存在不通过。 1 校验列表值为0通过。

CheckLocalFileWeakCrc ( string path, uint &fileCrc ) : bool

文件crc 1 如果校验列表没值并且文件存在返回false 2 如果校验列表没值并且文件不存在返回true

CheckUriCrc ( CRequest req ) : bool

根据组策略校验request.url的crc值。 文件不存在或者校验失败返回false

Clear ( ) : void
ContainsKey ( string key ) : bool
GetCrc ( string key ) : uint

GetLocalFileCrc ( string path, uint &l ) : uint

获取文件crc

Remove ( string key ) : bool

비공개 메소드들

메소드 설명
ClearCrcCheckedMap ( string crcKey ) : void

메소드 상세

Add() 공개 정적인 메소드

public static Add ( string key, uint crc ) : void
key string
crc uint
리턴 void

CheckCrc() 공개 정적인 메소드

crc校验 1 crc==0 通过。 2 如果校验列表没值通过。
public static CheckCrc ( string key, uint crc ) : bool
key string
crc uint
리턴 bool

CheckLocalFileCrc() 공개 정적인 메소드

本地文件crc强制校验, 1 如果校验列表没值不通过。 1 文件不存在不通过。 1 校验列表值为0通过。
public static CheckLocalFileCrc ( string path, uint &fileCrc ) : bool
path string
fileCrc uint
리턴 bool

CheckLocalFileWeakCrc() 공개 정적인 메소드

文件crc 1 如果校验列表没值并且文件存在返回false 2 如果校验列表没值并且文件不存在返回true
public static CheckLocalFileWeakCrc ( string path, uint &fileCrc ) : bool
path string
fileCrc uint
리턴 bool

CheckUriCrc() 공개 정적인 메소드

根据组策略校验request.url的crc值。 文件不存在或者校验失败返回false
public static CheckUriCrc ( CRequest req ) : bool
req Hugula.Loader.CRequest
리턴 bool

Clear() 공개 정적인 메소드

public static Clear ( ) : void
리턴 void

ContainsKey() 공개 정적인 메소드

public static ContainsKey ( string key ) : bool
key string
리턴 bool

GetCrc() 공개 정적인 메소드

public static GetCrc ( string key ) : uint
key string
리턴 uint

GetLocalFileCrc() 공개 정적인 메소드

获取文件crc
public static GetLocalFileCrc ( string path, uint &l ) : uint
path string
l uint
리턴 uint

Remove() 공개 정적인 메소드

public static Remove ( string key ) : bool
key string
리턴 bool