blob: c2ec08c69077557fc86a73bfa13641221d3f30b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// This is lzma.js, powered by lzip (which is GPL, source code at https://github.com/kripken/lzma.js)
var LZMA = {
run: function(data, decompress) {
var inputIndex = 0;
var returnValue = [];
var Module = {
arguments: ['-q'].concat(decompress ? ['-d'] : []),
stdin: function() { return inputIndex < data.length ? data[inputIndex++] : null },
stdout: function(x) { if (x !== null) returnValue.push(x) }
};
|