MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / find_key

Method find_key

external/basisu/transcoder/basisu_transcoder.cpp:16935–16942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16933 }
16934
16935 const basisu::uint8_vec* ktx2_transcoder::find_key(const std::string& key_name) const
16936 {
16937 for (uint32_t i = 0; i < m_key_values.size(); i++)
16938 if (strcmp((const char *)m_key_values[i].m_key.data(), key_name.c_str()) == 0)
16939 return &m_key_values[i].m_value;
16940
16941 return nullptr;
16942 }
16943
16944 bool ktx2_transcoder::start_transcoding()
16945 {

Callers 3

hasKeyMethod · 0.80
getKeyValueSizeMethod · 0.80
getKeyValueMethod · 0.80

Calls 3

sizeMethod · 0.45
dataMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected