Class ResourceFile
Inheritance
System.Object
ResourceFile
Assembly: AssetRipper.IO.Files.dll
Syntax
public sealed class ResourceFile : FileBase
Constructors
|
Improve this Doc
View Source
ResourceFile(SmartStream, String, String)
Declaration
public ResourceFile(SmartStream stream, string filePath, string name)
Parameters
Type |
Name |
Description |
SmartStream |
stream |
|
System.String |
filePath |
|
System.String |
name |
|
|
Improve this Doc
View Source
ResourceFile(Byte[], String, String, Boolean)
Declaration
public ResourceFile(byte[] data, string filePath, string name, bool writable = true)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.String |
filePath |
|
System.String |
name |
|
System.Boolean |
writable |
|
|
Improve this Doc
View Source
ResourceFile(String, String)
Declaration
public ResourceFile(string filePath, string name)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
System.String |
name |
|
Fields
|
Improve this Doc
View Source
ResourceFileExtension
Declaration
public const string ResourceFileExtension = ".resource"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
StreamingFileExtension
Declaration
public const string StreamingFileExtension = ".ress"
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
Stream
Declaration
public SmartStream Stream { get; }
Property Value
Methods
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
IsDefaultResourceFile()
Declaration
public bool IsDefaultResourceFile()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsDefaultResourceFile(String)
Declaration
public static bool IsDefaultResourceFile(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Read(SmartStream)
Declaration
public override void Read(SmartStream stream)
Parameters
Overrides
|
Improve this Doc
View Source
ToByteArray()
Declaration
public override byte[] ToByteArray()
Returns
Type |
Description |
System.Byte[] |
|
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
Write(Stream)
Declaration
public override void Write(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Overrides