C# Class Hugula.Update.CrcCheck

Afficher le fichier Open project: tenvick/hugula

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ClearCrcCheckedMap ( string crcKey ) : void

Method Details

Add() public static méthode

public static Add ( string key, uint crc ) : void
key string
crc uint
Résultat void

CheckCrc() public static méthode

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

CheckLocalFileCrc() public static méthode

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

CheckLocalFileWeakCrc() public static méthode

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

CheckUriCrc() public static méthode

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

Clear() public static méthode

public static Clear ( ) : void
Résultat void

ContainsKey() public static méthode

public static ContainsKey ( string key ) : bool
key string
Résultat bool

GetCrc() public static méthode

public static GetCrc ( string key ) : uint
key string
Résultat uint

GetLocalFileCrc() public static méthode

获取文件crc
public static GetLocalFileCrc ( string path, uint &l ) : uint
path string
l uint
Résultat uint

Remove() public static méthode

public static Remove ( string key ) : bool
key string
Résultat bool