VE Lua Documentation

Press F to search!

bxor

Definition


-- @/=[C]:-1
function bxor(...)

Callers

@/lua/ge/extensions/editor/materialEditor.lua
  ) then
    setPropertyWithUndo(property, layer, "0x" .. tohex(bxor(animFlags, hex)))
  end
@/lua/common/libs/lua-websockets/websocket/tools.lua
    for i=17,80 do
      words[i] = bxor(words[i-3],words[i-8],words[i-14],words[i-16])
      words[i] = rol(words[i],1)
      elseif i > 20 and i < 41 then
        f = bxor(b,c,d)
        k = 0x6ED9EBA1
      elseif i > 60 and i < 81 then
        f = bxor(b,c,d)
        k = 0xCA62C1D6
@/lua/vehicle/controller/esc.lua
  if warningLightsTimer >= warningLightsDelayTime then
    escPulse = escActive and bit.bxor(escPulse, 1) or 0
    tcsPulse = tcsActive and bit.bxor(tcsPulse, 1) or 0
    escPulse = escActive and bit.bxor(escPulse, 1) or 0
    tcsPulse = tcsActive and bit.bxor(tcsPulse, 1) or 0
    warningLightsTimer = 0
@/lua/vehicle/extensions/tech/CANBus/ProjectBavariaShifter.lua
  for _, b in ipairs(data) do
    crc = bxor(crc, b)
    for _ = 0, 7 do
        crc = lshift(crc, 1)
        crc = bxor(crc, 0x1D)
      else
  end
  return band(bxor(crc, xorOutput), 0xFF)
end
@/lua/common/libs/luaqrcode/qrencode.lua
    for i=highest_exponent,0,-1 do
      tmp[i] = bitlib.bxor(gp_int[i],mp_int[i])
    end
@/lua/common/libs/lua-websockets/websocket/frame.lua
      local j = (i-1) % 4 + 1
      transformed[i] = bxor(original[i],mask[j])
    end
@/lua/vehicle/bdebugImpl.lua
  local x, y, z = roundNear(v.x, overlapSize), roundNear(v.y, overlapSize), roundNear(v.z, overlapSize)
  local hash = bit.bxor(bit.bxor((x + (offX or 0)) * 73856093, (y + (offY or 0)) * 19349663), (z + (offZ or 0)) * 83492791)
  return not isnaninf(hash) and hash or 0
  local x, y, z = roundNear(v.x, overlapSize), roundNear(v.y, overlapSize), roundNear(v.z, overlapSize)
  local hash = bit.bxor(bit.bxor((x + (offX or 0)) * 73856093, (y + (offY or 0)) * 19349663), (z + (offZ or 0)) * 83492791)
  return not isnaninf(hash) and hash or 0
@/lua/vehicle/wheels.lua
  if warningLightsTimer >= warningLightsDelayTime then
    absPulse = absActive and bit.bxor(absPulse, 1) or 0
    warningLightsTimer = 0
@/lua/vehicle/controller/drivingDynamics/CMU.lua
  if warningLightPulseTimer >= warningLightPulseTime then
    M.warningLightPulse = bit.bxor(M.warningLightPulse, 1)
    warningLightPulseTimer = 0
@/lua/vehicle/extensions/tech/CANBus/ProjectBavariaKombi.lua
  for _, b in ipairs(data) do
    crc = bxor(crc, b)
    for _ = 0, 7 do
        crc = lshift(crc, 1)
        crc = bxor(crc, 0x1D)
      else
  end
  return band(bxor(crc, xorOutput), 0xFF)
end