Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
PreLoadFile.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/UnrealString.h"
6#include "CoreMinimal.h"
7#include "HAL/Platform.h"
8#include "Misc/DelayedAutoRegister.h"
9
10class FEvent;
11
13{
14 FPreLoadFile(const TCHAR* InPath);
15
16 void* TakeOwnershipOfLoadedData(int64* OutFileSize=nullptr);
17 static void* TakeOwnershipOfLoadedDataByPath(const TCHAR* Filename, int64* OutFileSize);
18
19protected:
21
25 void* Data;
26 int64 FileSize;
29 class IAsyncReadFileHandle* AsyncReadHandle = nullptr;
30 class IAsyncReadRequest* SizeRequestHandle = nullptr;
31};
Definition Event.h:21
class IAsyncReadFileHandle * AsyncReadHandle
Definition PreLoadFile.h:29
bool bFailedToOpenInKickOff
Definition PreLoadFile.h:23
void KickOffRead()
static bool bSystemNoLongerTakingRequests
Definition PreLoadFile.h:24
class IAsyncReadRequest * SizeRequestHandle
Definition PreLoadFile.h:30
FString Path
Definition PreLoadFile.h:27
FPreLoadFile(const TCHAR *InPath)
static void * TakeOwnershipOfLoadedDataByPath(const TCHAR *Filename, int64 *OutFileSize)
void * TakeOwnershipOfLoadedData(int64 *OutFileSize=nullptr)
FEvent * CompletionEvent
Definition PreLoadFile.h:28