This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local LibDeflate = {} | |
local string_byte = string.byte | |
-- Calculate xor for two unsigned 8bit numbers (0 <= a,b <= 255) | |
local function Xor8(a, b) | |
local ret = 0 | |
local fact = 128 | |
while fact > a and fact > b do | |
fact = fact / 2 | |
end |