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

Function clientCutText

systemvm/agent/noVNC/core/rfb.js:3422–3439  ·  view source on GitHub ↗
(sock, data, extended = false)

Source from the content-addressed store, hash-verified

3420 },
3421
3422 clientCutText(sock, data, extended = false) {
3423 sock.sQpush8(6); // msg-type
3424
3425 sock.sQpush8(0); // padding
3426 sock.sQpush8(0); // padding
3427 sock.sQpush8(0); // padding
3428
3429 let length;
3430 if (extended) {
3431 length = toUnsigned32bit(-data.length);
3432 } else {
3433 length = data.length;
3434 }
3435
3436 sock.sQpush32(length);
3437 sock.sQpushBytes(data);
3438 sock.flush();
3439 },
3440
3441 setDesktopSize(sock, width, height, id, flags) {
3442 sock.sQpush8(251); // msg-type

Callers

nothing calls this directly

Calls 5

toUnsigned32bitFunction · 0.90
sQpush8Method · 0.80
sQpush32Method · 0.80
sQpushBytesMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected