Свойство | Тип | Описание | |
---|---|---|---|
CompareHashes | bool |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
CompareHashes ( byte a1, byte a2 ) : bool |
public static CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[] | ||
inputStream | Stream | |
outputStream | Stream | |
seed | string | |
Результат | byte[] |
public static CreateEmptyFile ( string filename ) : void | ||
filename | string | |
Результат | void |
public static CreateNonExistentDirectory ( string path ) : void | ||
path | string | |
Результат | void |
public static CreateParentDirectoryForFile ( string path ) : void | ||
path | string | |
Результат | void |
public static CreateTmpName ( string path ) : string | ||
path | string | |
Результат | string |
public static DeleteDirectory ( string path ) : void | ||
path | string | |
Результат | void |
public static DeleteDirectorySilently ( string path ) : void | ||
path | string | |
Результат | void |
public static DeleteFile ( string filePath ) : void | ||
filePath | string | |
Результат | void |
public static DeleteFileSilently ( string filePath ) : void | ||
filePath | string | |
Результат | void |
public static DirectoryCopy ( string sourceDirName, string destDirName ) : void | ||
sourceDirName | string | |
destDirName | string | |
Результат | void |
public static GetFingerprint ( byte hash, int length = 8 ) : string | ||
hash | byte | |
length | int | |
Результат | string |
public static GetMD5OfFile ( string filename, string seed = null ) : byte[] | ||
filename | string | |
seed | string | |
Результат | byte[] |
public static GetMD5OfString ( string value, string seed = null ) : byte[] | ||
value | string | |
seed | string | |
Результат | byte[] |
public static PathExists ( string path ) : bool | ||
path | string | |
Результат | bool |
public static ReadAllText ( string path, string defaultValue = null ) : string | ||
path | string | |
defaultValue | string | |
Результат | string |
public static TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string | ||
filename | string | |
manifest | string | |
seed | string | |
Результат | string |
public static VerifyExpandedArchive ( string baseDirectory, Predicate |
||
baseDirectory | string | |
shouldCheck | Predicate |
|
manifestName | string | |
Результат | bool |
public static WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void | ||
filePath | string | |
value | string | |
deleteOnError | bool | |
Результат | 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 | |
Результат | void |
public static WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void | ||
filePath | string | |
contents | byte | |
deleteOnError | bool | |
Результат | void |