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

Function xor

cf/src/connection.js:1036–1042  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

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

Callers 1

SASLContinueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected