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

Method FromText

Engine/source/EtCore/FileSystem/FileUtil.cpp:53–56  ·  view source on GitHub ↗

--------------------------------- FileUtil::FromText Converts an std::string to a byte array

Source from the content-addressed store, hash-verified

51// Converts an std::string to a byte array
52//
53std::vector<uint8> FileUtil::FromText(const std::string &data)
54{
55 return std::vector<uint8>(data.begin(), data.end());
56}
57
58//---------------------------------
59// FileUtil::GetCompiledResource

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected