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

Function _advance_padding

compat/image_parser_v2.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "webp_compat.h"
4
5void _advance_padding(Ref<FileAccess> f, uint32_t p_len) {
6 uint32_t extra = 4 - (p_len % 4);
7 if (extra < 4) {
8 for (uint32_t i = 0; i < extra; i++) {
9 f->get_8(); // pad to 32
10 }
11 }
12}
13
14void _pad_buffer(Ref<FileAccess> f, uint32_t p_len) {
15 int extra = 4 - (p_len % 4);

Callers 2

decode_image_v2Method · 0.85
parse_variantMethod · 0.85

Calls 1

get_8Method · 0.45

Tested by

no test coverage detected