local function t(t,f,h,x)local g=0 for h=f,h,x do local x=256^math.abs(h-f)g=g+x*string.byte(t,h,h)end return g end

local function rd_int_basic(src, s, e, d)
	local num = 0

	-- if bb[l] > 127 then -- signed negative
	-- 	num = num - 256 ^ l
	-- 	bb[l] = bb[l] - 128
	-- end

	for i = s, e, d do
		local mul = 256 ^ math.abs(i - s)

		num = num + mul * string.byte(src, i, i)
	end

	return num
end
