Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Nov 6, 2023
1 parent bdd0037 commit 26a7bd8
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions src/tests/thirdparty/t_zlib_smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
//-----------------------------------------------------------------------------
TEST(zlib_smoke, zlib_basic)
{

// exercise compress and uncompress interface

Bytef compress_dest[32];
Bytef compress_src[32];
Bytef uncompress_dest[64];
Expand Down Expand Up @@ -50,36 +53,5 @@ TEST(zlib_smoke, zlib_basic)
{
EXPECT_EQ(compress_src[i],uncompress_dest[i]);
}

//
// EXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen));
// /*
// Compresses the source buffer into the destination buffer. sourceLen is
// the byte length of the source buffer. Upon entry, destLen is the total size
// of the destination buffer, which must be at least the value returned by
// compressBound(sourceLen). Upon exit, destLen is the actual size of the
// compressed buffer.
//
// compress returns Z_OK if success, Z_MEM_ERROR if there was not
// enough memory, Z_BUF_ERROR if there was not enough room in the output
// buffer.
// */
//
// ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen));
// /*
// Decompresses the source buffer into the destination buffer. sourceLen is
// the byte length of the source buffer. Upon entry, destLen is the total size
// of the destination buffer, which must be large enough to hold the entire
// uncompressed data. (The size of the uncompressed data must have been saved
// previously by the compressor and transmitted to the decompressor by some
// mechanism outside the scope of this compression library.) Upon exit, destLen
// is the actual size of the uncompressed buffer.
//
// uncompress returns Z_OK if success, Z_MEM_ERROR if there was not
// enough memory, Z_BUF_ERROR if there was not enough room in the output
// buffer, or Z_DATA_ERROR if the input data was corrupted or incomplete. In
// the case where there is not enough room, uncompress() will fill the output
// buffer with the uncompressed data up to that point.
// */
}

0 comments on commit 26a7bd8

Please sign in to comment.