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

Method get_data

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

Source from the content-addressed store, hash-verified

1601}
1602
1603PackedByteArray FontFile::get_data() const
1604{
1605 if (unlikely((size_t)data.size() != data_size))
1606 {
1607 PackedByteArray* data_w = const_cast<PackedByteArray*>(&data);
1608 data_w->resize(data_size);
1609 memcpy(data_w->ptrw(), data_ptr, data_size);
1610 }
1611 return data;
1612}
1613
1614void FontFile::set_font_name(const String& p_name)
1615{

Callers 15

ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
CompileMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportGLTFWithDataFunction · 0.45
do_in_backgroundMethod · 0.45
skr_init_anim_buffersFunction · 0.45

Calls 4

memcpyFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
ptrwMethod · 0.45

Tested by

no test coverage detected