C# 클래스 Patcher.Data.DataFile

파일 보기 프로젝트 열기: unforbidable/patcher

공개 메소드들

메소드 설명
CopyFrom ( Stream input, bool updateOnly ) : bool

Copies a stream into the current data file, optionally only if does not exists and contains different data.

Delete ( ) : void
Exists ( ) : bool
GetRelativePath ( ) : string
GetRelativePath ( string path ) : string
Open ( ) : FileStream

비공개 메소드들

메소드 설명
DataFile ( IDataFileProvider provider, FileMode mode, string fullPath, string requestedPath ) : System
EnsureDirectoryExists ( string path ) : void

메소드 상세

CopyFrom() 공개 메소드

Copies a stream into the current data file, optionally only if does not exists and contains different data.
public CopyFrom ( Stream input, bool updateOnly ) : bool
input Stream The Stream to copy data from.
updateOnly bool If true, file will not be recreated if already exists and contains the same data.
리턴 bool

Delete() 공개 메소드

public Delete ( ) : void
리턴 void

Exists() 공개 메소드

public Exists ( ) : bool
리턴 bool

GetRelativePath() 공개 메소드

public GetRelativePath ( ) : string
리턴 string

GetRelativePath() 공개 정적인 메소드

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

Open() 공개 메소드

public Open ( ) : FileStream
리턴 System.IO.FileStream