diff options
author | Narayan Kamath <narayan@google.com> | 2015-01-29 16:55:13 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-01-30 11:02:57 +0000 |
commit | 5ccb2b3621f633708eb3ae1fd0f27f88bdb32a9d (patch) | |
tree | d42335d20db838af7cbe93dca311b45a67212a41 /include/ScopedJavaUnicodeString.h | |
parent | 4ea6715f1cb6edbce3cbbc4c50e1a712ec70d565 (diff) |
Fix deflater in / out counts for inputs > 4G.
The underlying inflate & deflate can process any amount of data
correctly, since the protocol is chunk based (the size of each
chunk is limited to 32 bits, usually) and there is no limit to
the number of chunks.
On LP32, the stream counters are limited to 32 bit counts and
the manual recommends that the caller maintain their own counters
to support larger counts.
<quote>
Note however that the strm.total_in and strm_total_out counters may be
limited to 4 GB. These counters are provided as a convenience and are
not used internally by inflate() or deflate(). The application can
easily set up its own counters updated after each call of inflate()
or deflate() to count beyond 4 GB.
</quote>
Change-Id: I066e1141935154773360c1b9f94c56bd604f8474
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions