function luaU.from_int(e,Z)local a=""Z=math.floor(Z)if Z<0 then Z=4294967296+Z end for e=1,4,1 do local c=Z%256 a=a..string.char(c)Z=math.floor(Z/256)end return a end

function luaU:from_int(x)
  local v = ""
  x = math.floor(x)
  if x < 0 then x = 4294967296 + x end  -- ULONG_MAX+1
  for i = 1, 4 do
    local c = x % 256
    v = v..string.char(c); x = math.floor(x / 256)
  end
  return v
end
