gzip/deflatelua.lua

changeset 65
41aeda62af16
parent 59
165b36273ce7
child 78
22977dbb746b
equal deleted inserted replaced
64:4beddef56d73 65:41aeda62af16
434 local bs, os = get_bitstream(t.input) 434 local bs, os = get_bitstream(t.input)
435 , make_os(get_obytestream(t.output)) 435 , make_os(get_obytestream(t.output))
436 repeat until parse_block(bs, os) 436 repeat until parse_block(bs, os)
437 end 437 end
438 438
439 function gunzip(t) 439 return function (t)
440 local bs = get_bitstream(t.input) 440 local bs = get_bitstream(t.input)
441 local outbs = get_obytestream(t.output) 441 local outbs = get_obytestream(t.output)
442 442
443 parse_gzip_header(bs) 443 parse_gzip_header(bs)
444 444

mercurial