0 ;'ˆá’þJ%œp,ÇbyÑ’U¦öjÿŸàßÞÝ 173Üa–ßi~”T¾R( Å €ÆÝS�ÿÜ­'‹MŒ1 Â0„ÿË›ÍàV§k-¤„NâK,‘6¯$ÑEü曆�7ÜwÇÝ‹žÆ+ŽòÓÍŽ†rêeºZg0ŽÙ=S�‡ïÍI$¦pã@ù™²Lm|¯¬‹Æ;=*™�×Q|Pk1Ð…Ééé[NrÒólÝ�ˆ�Ž[ å ¨x(€¡Xu4,É�‚K ÜÇxXí…WÕ×@ýë.½?³>˜iâ)ˆÅŽþ]*Î8ÜrP…é@çá ‚œÞ¾Ü~)report-with: php8.4-common php8.4-cli libphp8.4-embed libapache2-mod-php8.4 libapache2-mod-php8.4filter php8.4-cgi php8.4-fpm %+ˆâ“þY«8àYŽ6Äóq½*Ó{5ÏáàßÞ 337ݾÜQ+‹…RKKÄ0¾ï¯ðЄ­©^-U¼‚"(þ€n:]GÚ$¤©,,ýï¦Ùn«ÝWnóø^C¨6Ú:Ø‚6hs‡ÐAiu ‘Ië¨J**]”.h¿'-úµ·°­íG»j¤¥Ú ˜=nAÙ*éH+(IÌX,Hz¾Ü5�vÍa»ÿ,ºÖª½+¶S}:މ!úÉ«#ÎÓEw t‹5¹½ªÔªqÁÚ³*pY˜B–eQßñAþ¸c�n­ôd͘”Cv?�õ¯B4Pݤc{‡#Œ�º*›˜c`!åLa²M^#h-—é¿1•0%2¯*6¦”1PÓ@þá ƒyæ›Þ¾Ü"�/----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare module ----------------------------------------------------------------------------- local string = require("string") local table = require("table") local unpack = unpack or table.unpack local base = _G local select = select local _M = {} if module then -- heuristic for exporting a global package table ltn12 = _M -- luacheck: ignore end local filter,source,sink,pump = {},{},{},{} _M.filter = filter _M.source = source _M.sink = sink _M.pump = pump -- 2048 seems to be better in windows... _M.BLOCKSIZE = 2048 _M._VERSION = "LTN12 1.0.3" ----------------------------------------------------------------------------- -- Filter stuff ----------------------------------------------------------------------------- -- returns a high level filter that cycles a low-level filter function filter.cycle(low, ctx, extra) base.assert(low) return function(chunk) local ret ret, ctx = low(ctx, chunk, extra) return ret end end -- chains a bunch of filters together -- (thanks to Wim Couwenberg) function filter.chain(...) local arg = {...} local n = select('#',...) local top, index = 1, 1 local retry = "" return function(chunk) retry = chunk and retry while true do if index == top then chunk = arg[index](chunk) if chunk == "" or top == n then return chunk elseif chunk then index = index + 1 else top = top+1 index = top end else chunk = arg[index](chunk or "") if chunk == "" then index = index - 1 chunk = retry elseif chunk then if index == n then return chunk else index = index + 1 end else base.error("filter returned inappropriate nil") end end end end end ----------------------------------------------------------------------------- -- Source stuff ----------------------------------------------------------------------------- -- create an empty source local function empty() return nil end function source.empty() return empty end -- returns a source that just outputs an error function source.error(err) return function() return nil, err end end -- creates a file source function source.file(handle, io_err) if handle then return function() local chunk = handle:read(_M.BLOCKSIZE) if not chunk then handle:close() end return chunk end else return source.error(io_err or "unable to open file") end end -- tu