C# Class Sharpex2D.Content.ContentVerifier

Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

Verify() public méthode

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

Verify() public méthode

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