local function u(u)if u<256 then return 1 elseif u<65536 then return 2 elseif u<16777216 then return 3 elseif u<4294967296 then return 4 end end return u
local function sizeOf(n)
	if n < 0x100 then
		return 1
	elseif n < 0x10000 then
		return 2
	elseif n < 0x1000000 then
		return 3
	elseif n < 0x100000000 then
		return 4
	end
end

return sizeOf
