Lines Matching refs:flateData
39 z_stream flateData; in stream_inflate() local
40 flateData.zalloc = &skia_alloc_func; in stream_inflate()
41 flateData.zfree = &skia_free_func; in stream_inflate()
42 flateData.opaque = nullptr; in stream_inflate()
43 flateData.next_in = nullptr; in stream_inflate()
44 flateData.avail_in = 0; in stream_inflate()
45 flateData.next_out = outputBuffer; in stream_inflate()
46 flateData.avail_out = kBufferSize; in stream_inflate()
48 rc = inflateInit(&flateData); in stream_inflate()
57 flateData.next_in = inputBuffer; in stream_inflate()
58 flateData.avail_in = 0; in stream_inflate()
60 flateData.next_in = input; in stream_inflate()
61 flateData.avail_in = SkToUInt(inputLength); in stream_inflate()
66 if (flateData.avail_out < kBufferSize) { in stream_inflate()
67 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
71 flateData.next_out = outputBuffer; in stream_inflate()
72 flateData.avail_out = kBufferSize; in stream_inflate()
76 if (flateData.avail_in == 0) { in stream_inflate()
82 flateData.next_in = inputBuffer; in stream_inflate()
83 flateData.avail_in = SkToUInt(read); in stream_inflate()
85 rc = inflate(&flateData, Z_NO_FLUSH); in stream_inflate()
88 rc = inflate(&flateData, Z_FINISH); in stream_inflate()
89 if (flateData.avail_out < kBufferSize) { in stream_inflate()
90 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
94 flateData.next_out = outputBuffer; in stream_inflate()
95 flateData.avail_out = kBufferSize; in stream_inflate()
99 inflateEnd(&flateData); in stream_inflate()