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

Function LoadFromBytes

Source/Engine/Serialization/JsonSerializer.h:29–32  ·  view source on GitHub ↗

Performs object Json deserialization from the raw bytes. The object to deserialize (can be null). The source data to read from. The engine build number of the saved data. Used to resolve old object formats when loading deprecated data.

Source from the content-addressed store, hash-verified

27 /// <param name="data">The source data to read from.</param>
28 /// <param name="engineBuild">The engine build number of the saved data. Used to resolve old object formats when loading deprecated data.</param>
29 FORCE_INLINE static void LoadFromBytes(ISerializable* obj, const Array<byte>& data, int32 engineBuild)
30 {
31 LoadFromBytes(obj, Span<byte>(data.Get(), data.Count()), engineBuild);
32 }
33
34 /// <summary>
35 /// Performs object Json deserialization from the raw bytes.

Callers 3

onNodeLoadedMethod · 0.85
DoMethod · 0.85
ReadJsonMethod · 0.85

Calls 2

GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected