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

Unified Diff: runtime/bin/filter.h

Issue 14962006: Actually end a ZLib stream with a Z_FINISH marker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | runtime/bin/filter.cc » ('j') | tests/standalone/io/zlib_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/filter.h
diff --git a/runtime/bin/filter.h b/runtime/bin/filter.h
index fcfaa0ecaead9b31e504a75be43df893baa05411..4c5975952d40aeef17b3521c585ba7936aececb0 100644
--- a/runtime/bin/filter.h
+++ b/runtime/bin/filter.h
@@ -26,7 +26,10 @@ class Filter {
* a delete[] call.
*/
virtual bool Process(uint8_t* data, intptr_t length) = 0;
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish) = 0;
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
+ bool end) = 0;
static Dart_Handle SetFilterPointerNativeField(Dart_Handle filter,
Filter* filter_pointer);
@@ -57,7 +60,10 @@ class ZLibDeflateFilter : public Filter {
virtual bool Init();
virtual bool Process(uint8_t* data, intptr_t length);
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish);
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
+ bool end);
private:
const bool gzip_;
@@ -75,7 +81,10 @@ class ZLibInflateFilter : public Filter {
virtual bool Init();
virtual bool Process(uint8_t* data, intptr_t length);
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish);
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
+ bool end);
private:
uint8_t* current_buffer_;
« no previous file with comments | « no previous file | runtime/bin/filter.cc » ('j') | tests/standalone/io/zlib_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698