C# Class Hugula.Update.CrcCheck

Mostra file Open project: tenvick/hugula

Public Methods

Method 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

Method Description
ClearCrcCheckedMap ( string crcKey ) : void

Method Details

Add() public static method

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

CheckCrc() public static method

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

CheckLocalFileCrc() public static method

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

CheckLocalFileWeakCrc() public static method

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

CheckUriCrc() public static method

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

Clear() public static method

public static Clear ( ) : void
return void

ContainsKey() public static method

public static ContainsKey ( string key ) : bool
key string
return bool

GetCrc() public static method

public static GetCrc ( string key ) : uint
key string
return uint

GetLocalFileCrc() public static method

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

Remove() public static method

public static Remove ( string key ) : bool
key string
return bool