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

Method moveTo

src/core/lib/Stream.mjs:310–315  ·  view source on GitHub ↗

* Move to a specified position in the stream. * * @param {number} pos

(pos)

Source from the content-addressed store, hash-verified

308 * @param {number} pos
309 */
310 moveTo(pos) {
311 if (pos < 0 || pos > this.length)
312 throw new Error("Cannot move to position " + pos + " in stream. Out of bounds.");
313 this.position = pos;
314 this.bitPos = 0;
315 }
316
317 /**
318 * Returns true if there are more bytes left in the stream.

Callers 15

extractMZPEFunction · 0.95
extractMACHOFunction · 0.95
extractICOFunction · 0.95
extractTARGAFunction · 0.95
extractWAVFunction · 0.95
extractMP3Function · 0.95
extractSQLITEFunction · 0.95
extractMacOSXKeychainFunction · 0.95
extractOLE2Function · 0.95
extractBZIP2Function · 0.95
extractELFFunction · 0.95
extractEVTXFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected