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

Method end

modules/commodetto/commodettoRLE4Out.js:123–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122 }
123 end() {
124 delete this.scan;
125
126 if (!this.output.firstNybble)
127 this.output.position += 1;
128
129 this.bits = new Bitmap(this.width, this.height, Bitmap.RLE | Bitmap.Gray16,
130 this.output.slice(0, this.output.position).buffer, 0);
131
132 delete this.output;
133
134 }
135 pixelsToBytes(count) {
136 return (count * this.depth + 7) >> 3;
137 }

Callers 2

runMethod · 0.95
runMethod · 0.95

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected