MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadAssetHeader

Method LoadAssetHeader

Source/Engine/Content/Storage/FlaxStorage.cpp:696–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694#endif
695
696bool FlaxStorage::LoadAssetHeader(const Guid& id, AssetInitData& data)
697{
698 ASSERT(IsLoaded());
699
700 // Get asset location in file
701 Entry e;
702 if (GetEntry(id, e))
703 {
704 LOG(Error, "Cannot find asset \'{0}\' within {1}", id, ToString());
705 return true;
706 }
707
708 return LoadAssetHeader(e, data);
709}
710
711bool FlaxStorage::LoadAssetChunk(FlaxChunk* chunk)
712{

Callers 9

TryGetImportOptionsMethod · 0.80
TryGetImportOptionsMethod · 0.80
TryGetImportOptionsMethod · 0.80
loadAssetMethod · 0.80
OnStorageReloadedMethod · 0.80
InitMethod · 0.80
UpgradeAssetMethod · 0.80
ProcessMethod · 0.80
PackageMethod · 0.80

Calls 15

GetEntryFunction · 0.85
LoadAssetHeaderFunction · 0.85
LockFunction · 0.85
OpenFileFunction · 0.85
TypeId2TypeNameFunction · 0.85
ReadCharMethod · 0.80
IsLoadedFunction · 0.70
ToStringFunction · 0.50
SetPositionMethod · 0.45
ReadMethod · 0.45
ReadBytesMethod · 0.45
ReadInt32Method · 0.45

Tested by

no test coverage detected