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

Method load

Source/Engine/Content/Assets/RawDataAsset.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Asset::LoadResult RawDataAsset::load()
68{
69 auto chunk0 = GetChunk(0);
70 if (chunk0 == nullptr || chunk0->IsMissing())
71 return LoadResult::MissingDataChunk;
72
73 // TODO: swap memory alloc pointer to optimize this asset
74 Data.Set(chunk0->Data.Get(), chunk0->Data.Length());
75
76 return LoadResult::Ok;
77}
78
79void RawDataAsset::unload(bool isReloading)
80{

Callers

nothing calls this directly

Calls 5

GetChunkFunction · 0.85
IsMissingMethod · 0.80
SetMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected