MCPcopy
hub / github.com/gchq/CyberChef / consumeIf

Method consumeIf

src/core/lib/Stream.mjs:249–254  ·  view source on GitHub ↗

* Consume the next byte if it matches the supplied value. * * @param {number} val

(val)

Source from the content-addressed store, hash-verified

247 * @param {number} val
248 */
249 consumeIf(val) {
250 if (this.bytes[this.position] === val) {
251 this.position++;
252 this.bitPos = 0;
253 }
254 }
255
256 /**
257 * Move forwards through the stream by the specified number of bytes.

Callers 3

extractPDFFunction · 0.95
extractRTFFunction · 0.95
extractPListXMLFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected