Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2372)

Unified Diff: runtime/bin/filter_impl.dart

Issue 11275035: Introduce (private) ZLibFilter to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move bufferlength out as a top level constant. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/filter_impl.dart
diff --git a/runtime/bin/filter_impl.dart b/runtime/bin/filter_impl.dart
new file mode 100644
index 0000000000000000000000000000000000000000..23fff453f31f2bae69453a2145f67426afe3d775
--- /dev/null
+++ b/runtime/bin/filter_impl.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter {
+ _FilterImpl() {
+ _init();
+ }
+
+ void process(List<int> data) native "Filter_Process";
+
+ List<int> processed([bool flush = false]) native "Filter_Processed";
+
+ void end() native "Filter_End";
+}
+
+class _GZipDeflateFilterImpl extends _FilterImpl {
+ void _init() native "Filter_CreateGZipDeflate";
+}
+
+class _ZLibInflateFilterImpl extends _FilterImpl {
+ void _init() native "Filter_CreateZLibInflate";
+}

Powered by Google App Engine
This is Rietveld 408576698