MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / pad

Method pad

tools/image2cs.js:173–179  ·  view source on GitHub ↗
(dimension)

Source from the content-addressed store, hash-verified

171 }
172 }
173 pad(dimension) {
174 let multiple = 4;
175 let overflow = dimension & (multiple - 1);
176 if (overflow)
177 dimension += multiple - overflow;
178 return dimension;
179 }
180 readGIF(buffer) @ "Tool_readGIF";
181 readJPEG(path, frames) {
182 var data = this.readFileBuffer(path);

Callers 2

readJPEGMethod · 0.45
readPNGMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected