Class FileResource
Inheritance
System.Object
FileResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lumina.Data
Assembly: Lumina.dll
Syntax
public class FileResource
Constructors
| Improve this Doc View SourceFileResource()
Declaration
public FileResource()
Properties
| Improve this Doc View SourceData
Declaration
public byte[] Data { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte[] |
DataSpan
Declaration
public Span<byte> DataSpan { get; }
Property Value
| Type | Description |
|---|---|
| System.Span<System.Byte> |
FileInfo
Declaration
public LuminaFileInfo FileInfo { get; }
Property Value
| Type | Description |
|---|---|
| LuminaFileInfo |
FilePath
Declaration
public ParsedFilePath FilePath { get; }
Property Value
| Type | Description |
|---|---|
| ParsedFilePath |
FileStream
Declaration
public MemoryStream FileStream { get; }
Property Value
| Type | Description |
|---|---|
| System.IO.MemoryStream |
Reader
Declaration
public BinaryReader Reader { get; }
Property Value
| Type | Description |
|---|---|
| System.IO.BinaryReader |
Methods
| Improve this Doc View SourceGetFileHash()
Declaration
public string GetFileHash()
Returns
| Type | Description |
|---|---|
| System.String |
LoadFile()
Called once the files are read out from the dats. Used to further parse the file into usable data structures.
Declaration
public virtual void LoadFile()
SaveFile(String)
Declaration
public virtual void SaveFile(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path |