MCPcopy Index your code
hub / github.com/feross/buffer / swap

Function swap

index.js:559–563  ·  view source on GitHub ↗
(b, n, m)

Source from the content-addressed store, hash-verified

557Buffer.prototype._isBuffer = true
558
559function swap (b, n, m) {
560 const i = b[n]
561 b[n] = b[m]
562 b[m] = i
563}
564
565Buffer.prototype.swap16 = function swap16 () {
566 const len = this.length

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…