C# Класс Ohana3DS_Transfigured.Ohana.FileIO

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
export ( fileType type, object data ) : void

Exports a file of a given type. Formats available to export will depend on the type of the data.

getExtension ( byte data, int startIndex ) : string
import ( fileType type ) : object

Imports a file of the given type. Returns data relative to the chosen type.

load ( Stream data ) : file
load ( string fileName ) : file

Приватные методы

Метод Описание
getMagic ( BinaryReader input, uint length ) : string
getMagic ( byte data, int length, int startIndex ) : string

Описание методов

export() публичный статический Метод

Exports a file of a given type. Formats available to export will depend on the type of the data.
public static export ( fileType type, object data ) : void
type fileType Type of the data to be exported
data object The data
Результат void

getExtension() публичный статический Метод

public static getExtension ( byte data, int startIndex ) : string
data byte
startIndex int
Результат string

import() публичный статический Метод

Imports a file of the given type. Returns data relative to the chosen type.
public static import ( fileType type ) : object
type fileType The type of the data
Результат object

load() публичный статический Метод

public static load ( Stream data ) : file
data Stream
Результат file

load() публичный статический Метод

public static load ( string fileName ) : file
fileName string
Результат file