5#include "Containers/Array.h"
6#include "Containers/ArrayView.h"
7#include "Containers/ContainersFwd.h"
8#include "Containers/StringFwd.h"
9#include "Containers/StringView.h"
10#include "Containers/UnrealString.h"
12#include "HAL/FileManager.h"
13#include "HAL/PlatformCrt.h"
14#include "Math/Color.h"
15#include "Math/MathFwd.h"
16#include "Misc/EnumClassFlags.h"
17#include "Templates/UnrealTemplate.h"
22template <
typename FuncType>
class TFunctionRef;
25
26
57
58
59
63
64
65
66
67
68
69 static bool LoadFileToArray( TArray<uint8>& Result,
const TCHAR* Filename, uint32 Flags = 0 );
72
73
74
75
76
77
78 static bool LoadFileToArray( TArray64<uint8>& Result,
const TCHAR* Filename, uint32 Flags = 0 );
81
82
83
84
85
86
90
91
92
93
94
95
99
100
101
102
103
104
105
109
110
111
112
113
116 UE_DEPRECATED(4.26,
"LoadFileToStringArray no longer supports VerifyFlags. You can use UE::String::ParseLines to split up a string loaded with LoadFileToString")
120
121
122
123
124
125
128 UE_DEPRECATED(4.26,
"LoadFileToStringArrayWithPredicate no longer supports VerifyFlags. You can use UE::String::ParseLines to split up a string loaded with LoadFileToString")
132
133
134
135
136
140
141
145
146
150
151
152
156
157
158
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
185
186
187
188
189
190
191
192
193
197
198
199
200
201
202
203
204
208
209
210
211
212
213
214
215
216
220
221
222
223
224
225
228 enum class UE_DEPRECATED(5.0,
"EChannelMask has been deprecated in favor of EColorChannel") EChannelMask
238 UE_DEPRECATED(5.0,
"EChannelMask has been deprecated in favor of EColorChannel, please use the other CreateBitmap() method.")
239 static bool CreateBitmap(
const TCHAR* Pattern, int32 DataWidth, int32 DataHeight,
const struct FColor* Data, FIntRect* SubRectangle,
IFileManager* FileManager,
FString* OutFilename,
bool bInWriteAlpha, EChannelMask ChannelMask);
#define UE_DEPRECATED(Version, Message)
#define ENUM_CLASS_FLAGS(Enum)
#define STRUCT_OFFSET(struc, member)
static IFileManager & Get()
static bool LoadFileToStringWithLineVisitor(const TCHAR *Filename, TFunctionRef< void(FStringView Line)> Visitor)
static bool GenerateNextBitmapFilename(const FString &Pattern, const FString &Extension, FString &OutFilename, IFileManager *FileManager=&IFileManager::Get())
static bool LoadANSITextFileToStrings(const TCHAR *InFilename, IFileManager *InFileManager, TArray< FString > &OutStrings)
static bool SaveStringArrayToFile(const TArray< FString > &Lines, const TCHAR *Filename, EEncodingOptions EncodingOptions=EEncodingOptions::AutoDetect, IFileManager *FileManager=&IFileManager::Get(), uint32 WriteFlags=0)
static bool LoadFileToArray(TArray< uint8 > &Result, const TCHAR *Filename, uint32 Flags=0)
static bool LoadFileToStringArray(TArray< FString > &Result, const TCHAR *Filename)
static bool LoadFileToString(FString &Result, FArchive &Reader, EHashOptions VerifyFlags=EHashOptions::None)
static bool LoadFileToStringArray(TArray< FString > &Result, const TCHAR *Filename, EHashOptions VerifyFlags)
static bool LoadFileToStringArrayWithPredicate(TArray< FString > &Result, const TCHAR *Filename, TFunctionRef< bool(const FString &)> Predicate, EHashOptions VerifyFlags)
static bool CreateBitmap(const TCHAR *Pattern, int32 DataWidth, int32 DataHeight, const struct FColor *Data, FIntRect *SubRectangle=NULL, IFileManager *FileManager=&IFileManager::Get(), FString *OutFilename=NULL, bool bInWriteAlpha=false, EColorChannel ColorChannel=EColorChannel::All)
static void GenerateDateTimeBasedBitmapFilename(const FString &Pattern, const FString &Extension, FString &OutFilename)
static void BufferToString(FString &Result, const uint8 *Buffer, int32 Size)
static bool SaveArrayToFile(TArrayView< const uint8 > Array, const TCHAR *Filename, IFileManager *FileManager=&IFileManager::Get(), uint32 WriteFlags=0)
static bool LoadFileToString(FString &Result, const TCHAR *Filename, EHashOptions VerifyFlags=EHashOptions::None, uint32 ReadFlags=0)
static bool SaveStringToFile(FStringView String, const TCHAR *Filename, EEncodingOptions EncodingOptions=EEncodingOptions::AutoDetect, IFileManager *FileManager=&IFileManager::Get(), uint32 WriteFlags=0)
static bool SaveArrayToFile(const TArray64< uint8 > &Array, const TCHAR *Filename, IFileManager *FileManager=&IFileManager::Get(), uint32 WriteFlags=0)
static bool IsFilenameValidForSaving(const FString &Filename, FText &OutError)
static bool LoadFileToStringArrayWithPredicate(TArray< FString > &Result, const TCHAR *Filename, TFunctionRef< bool(const FString &)> Predicate)
static PRAGMA_DISABLE_DEPRECATION_WARNINGS bool CreateBitmap(const TCHAR *Pattern, int32 DataWidth, int32 DataHeight, const struct FColor *Data, FIntRect *SubRectangle, IFileManager *FileManager, FString *OutFilename, bool bInWriteAlpha, EChannelMask ChannelMask)
static bool LoadFileToString(FString &Result, IPlatformFile *PlatformFile, const TCHAR *Filename, EHashOptions VerifyFlags=EHashOptions::None, uint32 ReadFlags=0)