MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / _pad_buffer

Function _pad_buffer

compat/image_parser_v2.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void _pad_buffer(Ref<FileAccess> f, uint32_t p_len) {
15 int extra = 4 - (p_len % 4);
16 if (extra < 4) {
17 for (int32_t i = 0; i < extra; i++) {
18 f->store_8(0); //pad to 32
19 }
20 }
21}
22
23Ref<Image> ImageParserV2::convert_indexed_image(const Vector<uint8_t> &p_imgdata, int p_width, int p_height, int p_mipmaps, V2Image::Format p_format, Error *r_error) {
24 Vector<uint8_t> r_imgdata;

Callers 2

write_image_v2_to_binMethod · 0.85
write_variantMethod · 0.85

Calls 1

store_8Method · 0.45

Tested by

no test coverage detected