MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / set_data_ptr

Method set_data_ptr

modules/gui/gui/src/backend/text_server/font.cpp:1573–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571*/
1572
1573void FontFile::set_data_ptr(const uint8_t* p_data, size_t p_size)
1574{
1575 data.clear();
1576 data_ptr = p_data;
1577 data_size = p_size;
1578
1579 for (int i = 0; i < cache.size(); i++)
1580 {
1581 if (cache[i].is_valid())
1582 {
1583 TS->font_set_data_ptr(cache[i], data_ptr, data_size);
1584 }
1585 }
1586}
1587
1588void FontFile::set_data(const PackedByteArray& p_data)
1589{

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
sizeMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected