| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 |
| 6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter { |
| 7 void process(List<int> data) native "Filter_Process"; |
| 8 |
| 9 List<int> processed({bool flush: true}) native "Filter_Processed"; |
| 10 |
| 11 void end() native "Filter_End"; |
| 12 } |
| 13 |
| 14 class _ZLibInflateFilter extends _FilterImpl { |
| 15 _ZLibInflateFilter() { |
| 16 _init(); |
| 17 } |
| 18 void _init() native "Filter_CreateZLibInflate"; |
| 19 } |
| 20 |
| 21 class _ZLibDeflateFilter extends _FilterImpl { |
| 22 _ZLibDeflateFilter(bool gzip, int level) { |
| 23 _init(gzip, level); |
| 24 } |
| 25 void _init(bool gzip, int level) native "Filter_CreateZLibDeflate"; |
| 26 } |
| 27 |
| 28 patch class _Filter { |
| 29 /* patch */ static _Filter newZLibDeflateFilter(bool gzip, int level) |
| 30 => new _ZLibDeflateFilter(gzip, level); |
| 31 /* patch */ static _Filter newZLibInflateFilter() => new _ZLibInflateFilter(); |
| 32 } |
| 33 |
| OLD | NEW |