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

Method Read

Source/Engine/Serialization/Stream.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include "Engine/Scripting/ManagedCLR/MUtils.h"
31
32void ReadStream::Read(StringAnsi& data)
33{
34 int32 length;
35 ReadInt32(&length);
36 if (length < 0 || length > STREAM_MAX_STRING_LENGTH)
37 {
38 _hasError = true;
39 data = "";
40 return;
41 }
42
43 data.ReserveSpace(length);
44 if (length == 0)
45 return;
46 char* ptr = data.Get();
47 ASSERT(ptr != nullptr);
48 ReadBytes(ptr, length);
49}
50
51void ReadStream::Read(StringAnsi& data, int8 lock)
52{

Callers 15

RestoreStateMethod · 0.45
loadStateMethod · 0.45
loadMethod · 0.45
LoadProductMethod · 0.45
LoadSpritesMethod · 0.45
LoadMethod · 0.45
LoadMethod · 0.45
ProcessGroupPackingMethod · 0.45
loadMethod · 0.45
ExtractShaderIncludesMethod · 0.45
FromBytesMethod · 0.45

Calls 15

ReadInt32Function · 0.85
ReadBytesFunction · 0.85
ReadByteFunction · 0.85
ReadBoolFunction · 0.85
ReadInt16Function · 0.85
ReadUint16Function · 0.85
ReadUint32Function · 0.85
ReadInt64Function · 0.85
ReadUint64Function · 0.85
ReadDoubleFunction · 0.85
FindObjectFunction · 0.85
LoadAssetFunction · 0.85

Tested by

no test coverage detected