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

Function xor

deno/src/connection.js:1037–1043  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

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

Callers 1

SASLContinueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected