C# Class Hugula.Utils.FileHelper

Afficher le fichier Open project: tenvick/hugula Class Usage Examples

Méthodes publiques

Méthode Description
ChangePersistentFileName ( string oldName, string newname ) : bool

Changes the name of the persistent file.

CheckCreateFilePathDirectory ( string filePath ) : void

检测文件路径文件夹是否存在

ComputeCrc32 ( string path ) : uint

Computes the crc32.

DeletePersistentDirectory ( string relative = null ) : void

Delete the persistent Directory

DeletePersistentFile ( string fileName ) : void

Deletes the persistent file.

PersistentFileExists ( string abpath ) : bool

the Persistents file is Exists.

ReadPersistentFile ( string fileName ) : byte[]

Reads the persistent file.

SavePersistentFile ( Array context, string fileName ) : void

Saves the file.

SavePersistentFile ( string context, string fileName ) : void

Saves the persistent file.

UnpackConfigAssetBundleFn ( AssetBundle ab, LuaFunction luaFn ) : void

Method Details

ChangePersistentFileName() public static méthode

Changes the name of the persistent file.
public static ChangePersistentFileName ( string oldName, string newname ) : bool
oldName string Old name.
newname string Newname.
Résultat bool

CheckCreateFilePathDirectory() public static méthode

检测文件路径文件夹是否存在
public static CheckCreateFilePathDirectory ( string filePath ) : void
filePath string
Résultat void

ComputeCrc32() public static méthode

Computes the crc32.
public static ComputeCrc32 ( string path ) : uint
path string Path.
Résultat uint

DeletePersistentDirectory() public static méthode

Delete the persistent Directory
public static DeletePersistentDirectory ( string relative = null ) : void
relative string
Résultat void

DeletePersistentFile() public static méthode

Deletes the persistent file.
public static DeletePersistentFile ( string fileName ) : void
fileName string File name.
Résultat void

PersistentFileExists() public static méthode

the Persistents file is Exists.
public static PersistentFileExists ( string abpath ) : bool
abpath string Abpath.
Résultat bool

ReadPersistentFile() public static méthode

Reads the persistent file.
public static ReadPersistentFile ( string fileName ) : byte[]
fileName string File name.
Résultat byte[]

SavePersistentFile() public static méthode

Saves the file.
public static SavePersistentFile ( Array context, string fileName ) : void
context System.Array Context.
fileName string File name.
Résultat void

SavePersistentFile() public static méthode

Saves the persistent file.
public static SavePersistentFile ( string context, string fileName ) : void
context string Context.
fileName string File name.
Résultat void

UnpackConfigAssetBundleFn() public static méthode

public static UnpackConfigAssetBundleFn ( AssetBundle ab, LuaFunction luaFn ) : void
ab UnityEngine.AssetBundle
luaFn SLua.LuaFunction
Résultat void