A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/zlib_2uncompr_8c_source.html below:

NCBI C++ ToolKit: src/util/compress/zlib/uncompr.c Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* uncompr.c -- decompress a memory buffer 2  * Copyright (C) 1995-2003, 2010, 2014, 2016 Jean-loup Gailly, Mark Adler 3  * For conditions of distribution and use, see copyright notice in zlib.h 6 /* @(#) $Id: uncompr.c 97312 2022-07-06 14:53:46Z ivanov $ */ 11 /* =========================================================================== 12  Decompresses the source buffer into the destination buffer. *sourceLen is 13  the byte length of the source buffer. Upon entry, *destLen is the total size 14  of the destination buffer, which must be large enough to hold the entire 15  uncompressed data. (The size of the uncompressed data must have been saved 16  previously by the compressor and transmitted to the decompressor by some 17  mechanism outside the scope of this compression library.) Upon exit, 18  *destLen is the size of the decompressed data and *sourceLen is the number 19  of source bytes consumed. Upon return, source + *sourceLen points to the 20  first unused input byte. 22  uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough 23  memory, Z_BUF_ERROR if there was not enough room in the output buffer, or 24  Z_DATA_ERROR if the input data was corrupted, including if the input data is 25  an incomplete zlib stream. 37  Byte buf

[1];

/* for detection of incomplete stream when *destLen == 0 */ 56  if

(err !=

Z_OK

)

return

err;

71

}

while

(err ==

Z_OK

);

const CharType(& source)[N]

int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)

int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)

#define inflateInit(strm)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4