C# Class Ohana3DS_Transfigured.Ohana.FileIO

Afficher le fichier Open project: Quibilia/Ohana3DS-Transfigured Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
getMagic ( BinaryReader input, uint length ) : string
getMagic ( byte data, int length, int startIndex ) : string

Method Details

export() public static méthode

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
Résultat void

getExtension() public static méthode

public static getExtension ( byte data, int startIndex ) : string
data byte
startIndex int
Résultat string

import() public static méthode

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
Résultat object

load() public static méthode

public static load ( Stream data ) : file
data Stream
Résultat file

load() public static méthode

public static load ( string fileName ) : file
fileName string
Résultat file