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

Method TryGetSerializedObjectsIds

Source/Engine/Level/Actor.cpp:2044–2063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2042}
2043
2044Array<Guid> Actor::TryGetSerializedObjectsIds(const Span<byte>& data)
2045{
2046 PROFILE_CPU();
2047 Array<Guid> result;
2048 if (data.Length() > 0)
2049 {
2050 MemoryReadStream stream(data.Get(), data.Length());
2051
2052 // Header
2053 int32 engineBuild;
2054 stream.ReadInt32(&engineBuild);
2055 if (engineBuild <= FLAXENGINE_VERSION_BUILD && engineBuild >= 6165)
2056 {
2057 // Serialized objects ids (for references mapping)
2058 stream.Read(result);
2059 }
2060 }
2061
2062 return result;
2063}
2064
2065String Actor::ToJson()
2066{

Callers 4

PasteMethod · 0.80
DuplicateMethod · 0.80
CustomPasteMethod · 0.80
CustomDuplicateMethod · 0.80

Calls 4

LengthMethod · 0.45
GetMethod · 0.45
ReadInt32Method · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected