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

Method GetData

Source/Engine/Content/JsonAsset.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38String JsonAssetBase::GetData() const
39{
40 if (Data == nullptr)
41 return String::Empty;
42 PROFILE_CPU_NAMED("JsonAsset.GetData");
43 PROFILE_MEM(ContentAssets);
44 rapidjson_flax::StringBuffer buffer;
45 OnGetData(buffer);
46 return String((const char*)buffer.GetString(), (int32)buffer.GetSize());
47}
48
49void JsonAssetBase::SetData(const StringView& value)
50{

Callers 14

UpdateMethod · 0.45
exportCachePreviewMethod · 0.45
SampleCacheFunction · 0.45
RejectTexelFunction · 0.45
CaptureMethod · 0.45
CreateCubeMethod · 0.45
ConvertDirectXTexMethod · 0.45
ResizeDirectXTexMethod · 0.45
ExportTextureStbMethod · 0.45

Calls 3

StringClass · 0.50
GetStringMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected