C# 클래스 AssemblyCSharp.FileHelper

파일 보기 프로젝트 열기: wooga/ps_social_jam

Private Properties

프로퍼티 타입 설명
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 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

비공개 메소드들

메소드 설명
CompareHashes ( byte a1, byte a2 ) : bool

메소드 상세

CopyStream() 공개 정적인 메소드

public static CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[]
inputStream Stream
outputStream Stream
seed string
리턴 byte[]

CreateEmptyFile() 공개 정적인 메소드

public static CreateEmptyFile ( string filename ) : void
filename string
리턴 void

CreateNonExistentDirectory() 공개 정적인 메소드

public static CreateNonExistentDirectory ( string path ) : void
path string
리턴 void

CreateParentDirectoryForFile() 공개 정적인 메소드

public static CreateParentDirectoryForFile ( string path ) : void
path string
리턴 void

CreateTmpName() 공개 정적인 메소드

public static CreateTmpName ( string path ) : string
path string
리턴 string

DeleteDirectory() 공개 정적인 메소드

public static DeleteDirectory ( string path ) : void
path string
리턴 void

DeleteDirectorySilently() 공개 정적인 메소드

public static DeleteDirectorySilently ( string path ) : void
path string
리턴 void

DeleteFile() 공개 정적인 메소드

public static DeleteFile ( string filePath ) : void
filePath string
리턴 void

DeleteFileSilently() 공개 정적인 메소드

public static DeleteFileSilently ( string filePath ) : void
filePath string
리턴 void

DirectoryCopy() 공개 정적인 메소드

public static DirectoryCopy ( string sourceDirName, string destDirName ) : void
sourceDirName string
destDirName string
리턴 void

GetFingerprint() 공개 정적인 메소드

public static GetFingerprint ( byte hash, int length = 8 ) : string
hash byte
length int
리턴 string

GetMD5OfFile() 공개 정적인 메소드

public static GetMD5OfFile ( string filename, string seed = null ) : byte[]
filename string
seed string
리턴 byte[]

GetMD5OfString() 공개 정적인 메소드

public static GetMD5OfString ( string value, string seed = null ) : byte[]
value string
seed string
리턴 byte[]

PathExists() 공개 정적인 메소드

public static PathExists ( string path ) : bool
path string
리턴 bool

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( string path, string defaultValue = null ) : string
path string
defaultValue string
리턴 string

TryReadHashProtectedTextFile() 공개 정적인 메소드

public static TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string
filename string
manifest string
seed string
리턴 string

VerifyExpandedArchive() 공개 정적인 메소드

public static VerifyExpandedArchive ( string baseDirectory, Predicate shouldCheck = null, string manifestName = "manifest.txt" ) : bool
baseDirectory string
shouldCheck Predicate
manifestName string
리턴 bool

WriteAllTextAtomic() 공개 정적인 메소드

public static WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void
filePath string
value string
deleteOnError bool
리턴 void

WriteAllTextAtomicWithManifest() 공개 정적인 메소드

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

WriteFileAtomic() 공개 정적인 메소드

public static WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void
filePath string
contents byte
deleteOnError bool
리턴 void