| 47 | } |
| 48 | |
| 49 | void JsonAssetBase::SetData(const StringView& value) |
| 50 | { |
| 51 | if (!IsLoaded()) |
| 52 | return; |
| 53 | PROFILE_CPU_NAMED("JsonAsset.SetData"); |
| 54 | PROFILE_MEM(ContentAssets); |
| 55 | const StringAnsi dataJson(value); |
| 56 | ScopeLock lock(Locker); |
| 57 | const StringView dataTypeName = DataTypeName; |
| 58 | if (Init(dataTypeName, dataJson)) |
| 59 | { |
| 60 | LOG(Error, "Failed to set Json asset data."); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | bool JsonAssetBase::Init(const StringView& dataTypeName, const StringAnsiView& dataJson) |
| 65 | { |
no test coverage detected