Lines Matching refs:ret
70 int ret = deflateInit2(&strm, level, method, window_bits, mem_level, strategy); in ApplyBSDiffPatchAndStreamOutput() local
71 if (ret != Z_OK) { in ApplyBSDiffPatchAndStreamOutput()
72 LOG(ERROR) << "Failed to init uncompressed data deflation: " << ret; in ApplyBSDiffPatchAndStreamOutput()
82 &ret, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput()
91 ret = deflate(&strm, Z_NO_FLUSH); in ApplyBSDiffPatchAndStreamOutput()
93 ret = deflate(&strm, Z_FINISH); in ApplyBSDiffPatchAndStreamOutput()
95 if (ret != Z_OK && ret != Z_STREAM_END) { in ApplyBSDiffPatchAndStreamOutput()
96 LOG(ERROR) << "Failed to deflate stream: " << ret; in ApplyBSDiffPatchAndStreamOutput()
107 } while ((strm.avail_in != 0 || strm.avail_out == 0) && ret != Z_STREAM_END); in ApplyBSDiffPatchAndStreamOutput()
120 if (ret != Z_STREAM_END) { in ApplyBSDiffPatchAndStreamOutput()
121 LOG(ERROR) << "ret is expected to be Z_STREAM_END, but it's " << ret; in ApplyBSDiffPatchAndStreamOutput()
252 int ret = inflateInit2(&strm, -15); in ApplyImagePatch() local
253 if (ret != Z_OK) { in ApplyImagePatch()
254 printf("failed to init source inflation: %d\n", ret); in ApplyImagePatch()
260 ret = inflate(&strm, Z_SYNC_FLUSH); in ApplyImagePatch()
261 if (ret != Z_STREAM_END) { in ApplyImagePatch()
262 printf("source inflation returned %d\n", ret); in ApplyImagePatch()