C# Класс Patcher.Data.DataFile

Показать файл Открыть проект

Открытые методы

Метод Описание
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