Lines Matching refs:arr
590 var arr;
594 arr = keyEvent(keysym, down);
595 arr = arr.concat(fbUpdateRequests());
596 ws.send(arr);
1282 getTightCLength = function (arr) { argument
1284 data += arr[0] & 0x7f;
1285 if (arr[0] & 0x80) {
1287 data += (arr[1] & 0x7f) << 7;
1288 if (arr[1] & 0x80) {
1290 data += arr[2] << 14;
1536 extract_data_uri = function(arr) { argument
1542 return ";base64," + Base64.encode(arr);
1631 var arr;
1632 arr = [0]; // msg-type
1633 arr.push8(0); // padding
1634 arr.push8(0); // padding
1635 arr.push8(0); // padding
1637 arr.push8(fb_Bpp * 8); // bits-per-pixel
1638 arr.push8(fb_depth * 8); // depth
1639 arr.push8(0); // little-endian
1640 arr.push8(conf.true_color ? 1 : 0); // true-color
1642 arr.push16(255); // red-max
1643 arr.push16(255); // green-max
1644 arr.push16(255); // blue-max
1645 arr.push8(16); // red-shift
1646 arr.push8(8); // green-shift
1647 arr.push8(0); // blue-shift
1649 arr.push8(0); // padding
1650 arr.push8(0); // padding
1651 arr.push8(0); // padding
1653 return arr;
1658 var arr, i, encList = [];
1670 arr = [2]; // msg-type
1671 arr.push8(0); // padding
1673 arr.push16(encList.length); // encoding count
1675 arr.push32(encList[i]);
1678 return arr;
1687 var arr;
1688 arr = [3]; // msg-type
1689 arr.push8(incremental);
1690 arr.push16(x);
1691 arr.push16(y);
1692 arr.push16(xw);
1693 arr.push16(yw);
1695 return arr;
1701 arr = [], i, cb, db;
1706 arr = arr.concat(fbUpdateRequest(1, cb.x, cb.y, cb.w, cb.h));
1711 arr = arr.concat(fbUpdateRequest(0, db.x, db.y, db.w, db.h));
1713 return arr;
1720 var arr;
1721 arr = [4]; // msg-type
1722 arr.push8(down);
1723 arr.push16(0);
1724 arr.push32(keysym);
1726 return arr;
1732 var arr;
1733 arr = [5]; // msg-type
1734 arr.push8(mouse_buttonMask);
1735 arr.push16(x);
1736 arr.push16(y);
1738 return arr;
1743 var arr, i, n;
1744 arr = [6]; // msg-type
1745 arr.push8(0); // padding
1746 arr.push8(0); // padding
1747 arr.push8(0); // padding
1748 arr.push32(text.length);
1751 arr.push(text.charCodeAt(i));
1754 return arr;
1795 var arr = [];
1796 arr = arr.concat(keyEvent(0xFFE3, 1)); // Control
1797 arr = arr.concat(keyEvent(0xFFE9, 1)); // Alt
1798 arr = arr.concat(keyEvent(0xFFFF, 1)); // Delete
1799 arr = arr.concat(keyEvent(0xFFFF, 0)); // Delete
1800 arr = arr.concat(keyEvent(0xFFE9, 0)); // Alt
1801 arr = arr.concat(keyEvent(0xFFE3, 0)); // Control
1802 arr = arr.concat(fbUpdateRequests());
1803 ws.send(arr);
1810 var arr = [];
1813 arr = arr.concat(keyEvent(code, down ? 1 : 0));
1816 arr = arr.concat(keyEvent(code, 1));
1817 arr = arr.concat(keyEvent(code, 0));
1819 arr = arr.concat(fbUpdateRequests());
1820 ws.send(arr);