GetLocalFileSystemName(string, out string, out ulong, out ulong)
This method looks up the virtual file entry specified, and returns the details of that file within the file on the local filesystem.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.IO.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
GetLocalFileSystemName(string, string, ulong, ulong)
public static bool GetLocalFileSystemName(string vfsFileName, out string localFileName, out ulong localFileOffset, out ulong localFileSize)
Parameters
Virtual file entry to find.
Out parameter containing the file on the local filesystem.
Out parameter containing the offset inside of file on the local filesystem.
Out parameter containing the size inside of file on the local filesystem.
Returns
Type | Description |
|---|---|
| bool | Details were successfully found. |
Remarks
It populates the localFileName, localFileOffset, and localFileSize parameters with the path of the file on the local filesystem that contains the virtual file, and the offset and size of the virtual file within it. This method returns true if the details were successfully found. It returns false if it was not possible. This can happen if the virtual file is contained in a memory filesystem, or in a compressed file.