C# Class AssemblyCSharp.FileHelper

Afficher le fichier Open project: wooga/ps_social_jam

Private Properties

Свойство Type Description
CompareHashes bool

Méthodes publiques

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 shouldCheck = null, string manifestName = "manifest.txt" ) : bool
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

Private Methods

Méthode Description
CompareHashes ( byte a1, byte a2 ) : bool

Method Details

CopyStream() public static méthode

public static CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[]
inputStream Stream
outputStream Stream
seed string
Résultat byte[]

CreateEmptyFile() public static méthode

public static CreateEmptyFile ( string filename ) : void
filename string
Résultat void

CreateNonExistentDirectory() public static méthode

public static CreateNonExistentDirectory ( string path ) : void
path string
Résultat void

CreateParentDirectoryForFile() public static méthode

public static CreateParentDirectoryForFile ( string path ) : void
path string
Résultat void

CreateTmpName() public static méthode

public static CreateTmpName ( string path ) : string
path string
Résultat string

DeleteDirectory() public static méthode

public static DeleteDirectory ( string path ) : void
path string
Résultat void

DeleteDirectorySilently() public static méthode

public static DeleteDirectorySilently ( string path ) : void
path string
Résultat void

DeleteFile() public static méthode

public static DeleteFile ( string filePath ) : void
filePath string
Résultat void

DeleteFileSilently() public static méthode

public static DeleteFileSilently ( string filePath ) : void
filePath string
Résultat void

DirectoryCopy() public static méthode

public static DirectoryCopy ( string sourceDirName, string destDirName ) : void
sourceDirName string
destDirName string
Résultat void

GetFingerprint() public static méthode

public static GetFingerprint ( byte hash, int length = 8 ) : string
hash byte
length int
Résultat string

GetMD5OfFile() public static méthode

public static GetMD5OfFile ( string filename, string seed = null ) : byte[]
filename string
seed string
Résultat byte[]

GetMD5OfString() public static méthode

public static GetMD5OfString ( string value, string seed = null ) : byte[]
value string
seed string
Résultat byte[]

PathExists() public static méthode

public static PathExists ( string path ) : bool
path string
Résultat bool

ReadAllText() public static méthode

public static ReadAllText ( string path, string defaultValue = null ) : string
path string
defaultValue string
Résultat string

TryReadHashProtectedTextFile() public static méthode

public static TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string
filename string
manifest string
seed string
Résultat string

VerifyExpandedArchive() public static méthode

public static VerifyExpandedArchive ( string baseDirectory, Predicate shouldCheck = null, string manifestName = "manifest.txt" ) : bool
baseDirectory string
shouldCheck Predicate
manifestName string
Résultat bool

WriteAllTextAtomic() public static méthode

public static WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void
filePath string
value string
deleteOnError bool
Résultat void

WriteAllTextAtomicWithManifest() public static méthode

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

WriteFileAtomic() public static méthode

public static WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void
filePath string
contents byte
deleteOnError bool
Résultat void