self.key = {27,15,42,31}
end
function BUF类:取长度()
local prt = ffi.cast('char*',self:取指针())+self:取头长()
local len = self:运行父函数(1,'取长度')
local dlen = len-self:取头长()
local ki = 1
for i=0,dlen-1 do
prt[i]=bit.bxor(prt[i],self.key[ki])
ki=ki+1
if ki >#self.key then ki=1 end
end
return len
end
麻烦大神给翻译解释下这几句代码