| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter { | 6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter { |
| 7 void process(List<int> data, int start, int end) native "Filter_Process"; | 7 void process(List<int> data, int start, int end) native "Filter_Process"; |
| 8 | 8 |
| 9 List<int> processed({bool flush: true, bool end: false}) | 9 List<int> processed({bool flush: true, bool end: false}) |
| 10 native "Filter_Processed"; | 10 native "Filter_Processed"; |
| 11 | |
| 12 void end() native "Filter_End"; | |
| 13 } | 11 } |
| 14 | 12 |
| 15 class _ZLibInflateFilter extends _FilterImpl { | 13 class _ZLibInflateFilter extends _FilterImpl { |
| 16 _ZLibInflateFilter(int windowBits, List<int> dictionary, bool raw) { | 14 _ZLibInflateFilter(int windowBits, List<int> dictionary, bool raw) { |
| 17 _init(windowBits, dictionary, raw); | 15 _init(windowBits, dictionary, raw); |
| 18 } | 16 } |
| 19 void _init(int windowBits, List<int> dictionary, bool raw) | 17 void _init(int windowBits, List<int> dictionary, bool raw) |
| 20 native "Filter_CreateZLibInflate"; | 18 native "Filter_CreateZLibInflate"; |
| 21 } | 19 } |
| 22 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 int strategy, | 34 int strategy, |
| 37 List<int> dictionary, | 35 List<int> dictionary, |
| 38 bool raw) => | 36 bool raw) => |
| 39 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy, | 37 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy, |
| 40 dictionary, raw); | 38 dictionary, raw); |
| 41 /* patch */ static _Filter _newZLibInflateFilter(int windowBits, | 39 /* patch */ static _Filter _newZLibInflateFilter(int windowBits, |
| 42 List<int> dictionary, | 40 List<int> dictionary, |
| 43 bool raw) => | 41 bool raw) => |
| 44 new _ZLibInflateFilter(windowBits, dictionary, raw); | 42 new _ZLibInflateFilter(windowBits, dictionary, raw); |
| 45 } | 43 } |
| OLD | NEW |