MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / LodePNGIText_copy

Function LodePNGIText_copy

samples/shared/lodepng.cpp:2815–2829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2813}
2814
2815static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2816{
2817 size_t i = 0;
2818 dest->itext_keys = 0;
2819 dest->itext_langtags = 0;
2820 dest->itext_transkeys = 0;
2821 dest->itext_strings = 0;
2822 dest->itext_num = 0;
2823 for(i = 0; i < source->itext_num; i++)
2824 {
2825 CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i],
2826 source->itext_transkeys[i], source->itext_strings[i]));
2827 }
2828 return 0;
2829}
2830
2831void lodepng_clear_itext(LodePNGInfo* info)
2832{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_itextFunction · 0.85

Tested by

no test coverage detected