Home
last modified time | relevance | path

Searched refs:deflate_stream (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/util/
H A Dcompression.cpp35 z_stream deflate_stream; in compress() local
36 memset(&deflate_stream, 0, sizeof(deflate_stream)); in compress()
39 if (deflateInit(&deflate_stream, Z_DEFAULT_COMPRESSION) != Z_OK) { in compress()
43 deflate_stream.next_in = (Bytef *)raw.data(); in compress()
44 deflate_stream.avail_in = uInt(raw.size()); in compress()
51 deflate_stream.next_out = reinterpret_cast<Bytef *>(out); in compress()
52 deflate_stream.avail_out = sizeof(out); in compress()
53 code = deflate(&deflate_stream, Z_FINISH); in compress()
54 if (result.size() < deflate_stream.total_out) { in compress()
56 result.append(out, deflate_stream.total_out - result.size()); in compress()
[all …]