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 |