C# 클래스 Sharpex2D.Content.ContentVerifier

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
Verify ( Stream fileStream, string expectedSha256 ) : bool

Checks whether the content file is modified.

Verify ( string contentPath, string expectedSha256 ) : bool

Checks whether the content file is modified.

비공개 메소드들

메소드 설명
ContentVerifier ( ) : System

Initializes a new ContentVerifier class.

Sha256 ( Stream fileStream ) : string

Gets the Sha256-Hash of a file.

Sha256 ( string file ) : string

Gets the Sha256-Hash of a file.

메소드 상세

Verify() 공개 메소드

Checks whether the content file is modified.
public Verify ( Stream fileStream, string expectedSha256 ) : bool
fileStream Stream The FileStream.
expectedSha256 string The ExpectedSha256Hash.
리턴 bool

Verify() 공개 메소드

Checks whether the content file is modified.
public Verify ( string contentPath, string expectedSha256 ) : bool
contentPath string The ContentPath.
expectedSha256 string The ExpectedSha256Hash.
리턴 bool