Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9e9a7c3d
Kaydet (Commit)
9e9a7c3d
authored
Haz 21, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #640236: Better eplain unused data.
üst
5b8bfdf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
libzlib.tex
Doc/lib/libzlib.tex
+12
-7
No files found.
Doc/lib/libzlib.tex
Dosyayı görüntüle @
9e9a7c3d
...
...
@@ -123,24 +123,29 @@ action is to delete the object.
Decompression objects support the following methods, and two attributes:
\begin{memberdesc}
{
unused
_
data
}
A string which contains any unused data from the last string fed to
this decompression object. If the whole string turned out to contain
compressed data, this is
\code
{
""
}
, the empty string.
A string which contains any bytes past the end of the compressed data.
That is, this remains
\code
{
""
}
until the last byte that contains
compression data is available. If the whole string turned out to
contain compressed data, this is
\code
{
""
}
, the empty string.
The only way to determine where a string of compressed data ends is by
actually decompressing it. This means that when compressed data is
contained part of a larger file, you can only find the end of it by
reading data and feeding it
into a decompression object's
\method
{
decompress
}
method until the
\member
{
unused
_
data
}
attribute is
no longer the empty string.
reading data and feeding it
followed by some non-empty string into a
decompression object's
\method
{
decompress
}
method until the
\member
{
unused
_
data
}
attribute is no longer the empty string.
\end{memberdesc}
\begin{memberdesc}
{
unconsumed
_
tail
}
A string that contains any data that was not consumed by the last
\method
{
decompress
}
call because it exceeded the limit for the
uncompressed data buffer.
uncompressed data buffer. This data has not yet been seen by the zlib
machinery, so you must feed it (possibly with further data
concatenated to it) back to a subsequent
\method
{
decompress
}
method
call in order to get correct output.
\end{memberdesc}
\begin{methoddesc}
[Decompress]
{
decompress
}{
string
}{
\optional
{
max
_
length
}}
Decompress
\var
{
string
}
, returning a string containing the
uncompressed data corresponding to at least part of the data in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment