MCPcopy Create free account
hub / github.com/Illation/ETEngine / ReadLongString

Method ReadLongString

Engine/source/EtCore/FileSystem/BinaryReader.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::string BinaryReader::ReadLongString()
23{
24 if (m_pReader == nullptr)
25 {
26 LOG("BinaryReader doesn't exist! Unable to read binary data...", Warning);
27 return "";
28 }
29
30 auto stringLength = Read<uint32>();
31
32 std::stringstream ss;
33 for (uint32 i = 0; i<stringLength; ++i)
34 {
35 ss << Read<uint8>();
36 }
37
38 return (std::string)ss.str();
39}
40
41std::string BinaryReader::ReadNullString()
42{

Callers

nothing calls this directly

Calls 1

strMethod · 0.80

Tested by

no test coverage detected