Example #1
0
        private unsafe static ReadHandle ReadInternal(string filename, void *cmds, uint cmdCount, string assetName, ulong typeID, AssetLoadingSubsystem subsystem)
        {
            ReadHandle result;

            AsyncReadManager.ReadInternal_Injected(filename, cmds, cmdCount, assetName, typeID, subsystem, out result);
            return(result);
        }
 public JobHandle Close(JobHandle dependency = new JobHandle())
 {
     if (!IsFileHandleValid(this))
     {
         throw new InvalidOperationException("FileHandle.Close cannot be called twice on the same FileHandle");
     }
     return(AsyncReadManager.CloseFileAsync(this, dependency));
 }
Example #3
0
 public unsafe static ReadHandle Read(string filename, ReadCommand *readCmds, uint readCmdCount, string assetName = "", ulong typeID = 0uL, AssetLoadingSubsystem subsystem = AssetLoadingSubsystem.Scripts)
 {
     return(AsyncReadManager.ReadInternal(filename, (void *)readCmds, readCmdCount, assetName, typeID, subsystem));
 }