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

Function LodePNGText_copy

samples/shared/lodepng.cpp:2746–2757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2744}
2745
2746static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2747{
2748 size_t i = 0;
2749 dest->text_keys = 0;
2750 dest->text_strings = 0;
2751 dest->text_num = 0;
2752 for(i = 0; i < source->text_num; i++)
2753 {
2754 CERROR_TRY_RETURN(lodepng_add_text(dest, source->text_keys[i], source->text_strings[i]));
2755 }
2756 return 0;
2757}
2758
2759void lodepng_clear_text(LodePNGInfo* info)
2760{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_textFunction · 0.85

Tested by

no test coverage detected