MCPcopy Create free account
hub / github.com/apache/cloudstack / _decodeRLETile

Method _decodeRLETile

systemvm/agent/noVNC/core/decoders/zrle.js:127–142  ·  view source on GitHub ↗
(tileSize)

Source from the content-addressed store, hash-verified

125 }
126
127 _decodeRLETile(tileSize) {
128 const data = this._tileBuffer;
129 let i = 0;
130 while (i < tileSize) {
131 const pixel = this._readPixels(1);
132 const length = this._readRLELength();
133 for (let j = 0; j < length; j++) {
134 data[i * 4] = pixel[0];
135 data[i * 4 + 1] = pixel[1];
136 data[i * 4 + 2] = pixel[2];
137 data[i * 4 + 3] = pixel[3];
138 i++;
139 }
140 }
141 return data;
142 }
143
144 _decodeRLEPaletteTile(paletteSize, tileSize) {
145 const data = this._tileBuffer;

Callers 1

decodeRectMethod · 0.95

Calls 2

_readPixelsMethod · 0.95
_readRLELengthMethod · 0.95

Tested by

no test coverage detected