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

Method rQpeekBytes

systemvm/agent/noVNC/core/websock.js:152–158  ·  view source on GitHub ↗
(len, copy=true)

Source from the content-addressed store, hash-verified

150 }
151
152 rQpeekBytes(len, copy=true) {
153 if (copy) {
154 return this._rQ.slice(this._rQi, this._rQi + len);
155 } else {
156 return this._rQ.subarray(this._rQi, this._rQi + len);
157 }
158 }
159
160 // Check to see if we must wait for 'num' bytes (default to FBU.bytes)
161 // to be available in the receive queue. Return true if we need to

Callers 4

_normalMsgMethod · 0.80
decodeRectMethod · 0.80
_readSegmentMethod · 0.80

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected