C# Class Ohana3DS_Transfigured.Ohana.FileIO

显示文件 Open project: Quibilia/Ohana3DS-Transfigured Class Usage Examples

Public Methods

Method 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

Method Description
getMagic ( BinaryReader input, uint length ) : string
getMagic ( byte data, int length, int startIndex ) : string

Method Details

export() public static method

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
return void

getExtension() public static method

public static getExtension ( byte data, int startIndex ) : string
data byte
startIndex int
return string

import() public static method

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
return object

load() public static method

public static load ( Stream data ) : file
data Stream
return file

load() public static method

public static load ( string fileName ) : file
fileName string
return file