Свойство | Type | Description | |
---|---|---|---|
CompareHashes | bool |
Méthode | Description | |
---|---|---|
CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[] | ||
CreateEmptyFile ( string filename ) : void | ||
CreateNonExistentDirectory ( string path ) : void | ||
CreateParentDirectoryForFile ( string path ) : void | ||
CreateTmpName ( string path ) : string | ||
DeleteDirectory ( string path ) : void | ||
DeleteDirectorySilently ( string path ) : void | ||
DeleteFile ( string filePath ) : void | ||
DeleteFileSilently ( string filePath ) : void | ||
DirectoryCopy ( string sourceDirName, string destDirName ) : void | ||
GetFingerprint ( byte hash, int length = 8 ) : string | ||
GetMD5OfFile ( string filename, string seed = null ) : byte[] | ||
GetMD5OfString ( string value, string seed = null ) : byte[] | ||
PathExists ( string path ) : bool | ||
ReadAllText ( string path, string defaultValue = null ) : string | ||
TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string | ||
VerifyExpandedArchive ( string baseDirectory, Predicate |
||
WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void | ||
WriteAllTextAtomicWithManifest ( string filename, string value, string manifest, string seed, bool deleteOnError ) : void | ||
WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void |
Méthode | Description | |
---|---|---|
CompareHashes ( byte a1, byte a2 ) : bool |
public static CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[] | ||
inputStream | Stream | |
outputStream | Stream | |
seed | string | |
Résultat | byte[] |
public static CreateEmptyFile ( string filename ) : void | ||
filename | string | |
Résultat | void |
public static CreateNonExistentDirectory ( string path ) : void | ||
path | string | |
Résultat | void |
public static CreateParentDirectoryForFile ( string path ) : void | ||
path | string | |
Résultat | void |
public static CreateTmpName ( string path ) : string | ||
path | string | |
Résultat | string |
public static DeleteDirectory ( string path ) : void | ||
path | string | |
Résultat | void |
public static DeleteDirectorySilently ( string path ) : void | ||
path | string | |
Résultat | void |
public static DeleteFile ( string filePath ) : void | ||
filePath | string | |
Résultat | void |
public static DeleteFileSilently ( string filePath ) : void | ||
filePath | string | |
Résultat | void |
public static DirectoryCopy ( string sourceDirName, string destDirName ) : void | ||
sourceDirName | string | |
destDirName | string | |
Résultat | void |
public static GetFingerprint ( byte hash, int length = 8 ) : string | ||
hash | byte | |
length | int | |
Résultat | string |
public static GetMD5OfFile ( string filename, string seed = null ) : byte[] | ||
filename | string | |
seed | string | |
Résultat | byte[] |
public static GetMD5OfString ( string value, string seed = null ) : byte[] | ||
value | string | |
seed | string | |
Résultat | byte[] |
public static PathExists ( string path ) : bool | ||
path | string | |
Résultat | bool |
public static ReadAllText ( string path, string defaultValue = null ) : string | ||
path | string | |
defaultValue | string | |
Résultat | string |
public static TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string | ||
filename | string | |
manifest | string | |
seed | string | |
Résultat | string |
public static VerifyExpandedArchive ( string baseDirectory, Predicate |
||
baseDirectory | string | |
shouldCheck | Predicate |
|
manifestName | string | |
Résultat | bool |
public static WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void | ||
filePath | string | |
value | string | |
deleteOnError | bool | |
Résultat | void |
public static WriteAllTextAtomicWithManifest ( string filename, string value, string manifest, string seed, bool deleteOnError ) : void | ||
filename | string | |
value | string | |
manifest | string | |
seed | string | |
deleteOnError | bool | |
Résultat | void |
public static WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void | ||
filePath | string | |
contents | byte | |
deleteOnError | bool | |
Résultat | void |