MCPcopy Create free account
hub / github.com/porsager/postgres / xor

Function xor

cjs/src/connection.js:1034–1040  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1032}
1033
1034function xor(a, b) {
1035 const length = Math.max(a.length, b.length)
1036 const buffer = Buffer.allocUnsafe(length)
1037 for (let i = 0; i < length; i++)
1038 buffer[i] = a[i] ^ b[i]
1039 return buffer
1040}
1041
1042function timer(fn, seconds) {
1043 seconds = typeof seconds === 'function' ? seconds() : seconds

Callers 1

SASLContinueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected