| 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"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 _ZLibDeflateFilter(bool gzip, int level, int windowBits, int memLevel, | 24 _ZLibDeflateFilter(bool gzip, int level, int windowBits, int memLevel, |
| 25 int strategy, List<int> dictionary, bool raw) { | 25 int strategy, List<int> dictionary, bool raw) { |
| 26 _init(gzip, level, windowBits, memLevel, strategy, dictionary, raw); | 26 _init(gzip, level, windowBits, memLevel, strategy, dictionary, raw); |
| 27 } | 27 } |
| 28 void _init(bool gzip, int level, int windowBits, int memLevel, | 28 void _init(bool gzip, int level, int windowBits, int memLevel, |
| 29 int strategy, List<int> dictionary, bool raw) | 29 int strategy, List<int> dictionary, bool raw) |
| 30 native "Filter_CreateZLibDeflate"; | 30 native "Filter_CreateZLibDeflate"; |
| 31 } | 31 } |
| 32 | 32 |
| 33 patch class _Filter { | 33 patch class _Filter { |
| 34 /* patch */ static _Filter newZLibDeflateFilter(bool gzip, int level, | 34 /* patch */ static _Filter _newZLibDeflateFilter(bool gzip, int level, |
| 35 int windowBits, int memLevel, | 35 int windowBits, int memLevel, |
| 36 int strategy, | 36 int strategy, |
| 37 List<int> dictionary, | 37 List<int> dictionary, |
| 38 bool raw) => | 38 bool raw) => |
| 39 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy, | 39 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy, |
| 40 dictionary, raw); | 40 dictionary, raw); |
| 41 /* patch */ static _Filter newZLibInflateFilter(int windowBits, | 41 /* patch */ static _Filter _newZLibInflateFilter(int windowBits, |
| 42 List<int> dictionary, | 42 List<int> dictionary, |
| 43 bool raw) => | 43 bool raw) => |
| 44 new _ZLibInflateFilter(windowBits, dictionary, raw); | 44 new _ZLibInflateFilter(windowBits, dictionary, raw); |
| 45 } | 45 } |
| OLD | NEW |