MCPcopy Create free account
hub / github.com/cginternals/globjects / validate

Method validate

source/globjects/source/ProgramBinary.cpp:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ProgramBinary::validate() const
64{
65 if (m_valid)
66 return;
67
68 if (!m_dataSource)
69 return;
70
71 std::string stringData = m_dataSource->string();
72 size_t length = stringData.size();
73 const unsigned char* data = reinterpret_cast<const unsigned char*>(stringData.c_str());
74
75 m_binaryData = std::vector<unsigned char>(data, data+length);
76
77 m_valid = true;
78}
79
80
81} // namespace globjects

Callers

nothing calls this directly

Calls 2

stringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected