Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function decode(input, dictionary, output) {
- return (function decoder(
- state,
- output_arr,
- output_len,
- dictionary,
- output
- ) {
- var current_word,
- data_len,
- current_data,
- current_len,
- current_output,
- current_entry,
- previous_word = -1,
- data_arr = [],
- state_arr = [0, null]
- var result = null,
- decoded_arr = [output]
- for (
- data_len = Math.min(output.length, dictionary), current_data = 0;
- current_data < data_len;
- ++current_data
- )
- decoded_arr.push(output[current_data])
- decoded_arr.p = dictionary
- for (var data = []; ;) {
- // we'll look at what's in here in a minute
- }
- })(input, [], 0, dictionary, output)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement