Cleanup: RFB Client
File: rfb.js (also websock.js) Tests Added: True Changes: - De-Crockford-ified rfb.js - Added methods to websock.js to skip bytes in the receive queue
This commit is contained in:
parent
1e13775bd5
commit
b1dee94788
3731
include/rfb.js
3731
include/rfb.js
File diff suppressed because it is too large
Load Diff
|
@ -100,6 +100,14 @@ function Websock() {
|
||||||
return this._rQ[this._rQi++];
|
return this._rQ[this._rQi++];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
rQskip8: function () {
|
||||||
|
this._rQi++;
|
||||||
|
},
|
||||||
|
|
||||||
|
rQskipBytes: function (num) {
|
||||||
|
this._rQi += num;
|
||||||
|
},
|
||||||
|
|
||||||
rQunshift8: function (num) {
|
rQunshift8: function (num) {
|
||||||
if (this._rQi === 0) {
|
if (this._rQi === 0) {
|
||||||
this._rQ.unshift(num);
|
this._rQ.unshift(num);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue