Show / Hide Table of Contents

Class CharacterModelVersionCacheFile

Class to read/write/delete character model version cache file

Inheritance
Object
CharacterModelVersionCacheFile
Implements
IFileReadWriteDelete
IFileRead
IFileWrite
IFileDelete
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.IO
Assembly: Pixiv.VroidSdk.dll
Syntax
public class CharacterModelVersionCacheFile : IFileReadWriteDelete, IFileRead, IFileWrite, IFileDelete
Remarks

Files saved in temp directory

Constructors

CharacterModelVersionCacheFile(String, IFileReadWrite)

Constructor

Declaration
public CharacterModelVersionCacheFile(string characterModelVersionCacheFilePath, IFileReadWrite fileReadWrite)
Parameters
Type Name Description
String characterModelVersionCacheFilePath

Save location for cache file

IFileReadWrite fileReadWrite

File read and write module

Methods

Delete(String)

Delete file

Declaration
public void Delete(string filePath)
Parameters
Type Name Description
String filePath

Relative file path to be deleted

IsFileExist(String)

Check if file exists

Declaration
public bool IsFileExist(string filePath)
Parameters
Type Name Description
String filePath

Relative file path to be checked

Returns
Type Description
Boolean

File exists or not

Load(String)

Load file

Declaration
public byte[] Load(string filePath)
Parameters
Type Name Description
String filePath

Relative file path to be loaded

Returns
Type Description
Byte[]

Loaded binary

Exceptions
Type Condition
FileNotFoundException

File does not exist

CryptographicException

File decryption failed

Save(String, Byte[])

Save file in specified location

Declaration
public void Save(string filePath, byte[] data)
Parameters
Type Name Description
String filePath

Relative file path to be saved

Byte[] data

Binary to be saved

Implements

IFileReadWriteDelete
IFileRead
IFileWrite
IFileDelete
In This Article
Back to top Generated by DocFX