Home
last modified time | relevance | path

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

/external/zlib/src/contrib/pascal/
Dexample.pas185 var c_stream: z_stream; (* compression stream *)
191 c_stream.zalloc := NIL;
192 c_stream.zfree := NIL;
193 c_stream.opaque := NIL;
195 err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
198 c_stream.next_in := hello;
199 c_stream.next_out := compr;
201 while (c_stream.total_in <> len) and
202 (c_stream.total_out < comprLen) do
204 c_stream.avail_out := 1; { force small buffers }
[all …]
/external/zlib/src/test/
Dexample.c204 z_stream c_stream; /* compression stream */ local
208 c_stream.zalloc = zalloc;
209 c_stream.zfree = zfree;
210 c_stream.opaque = (voidpf)0;
212 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
215 c_stream.next_in = (z_const unsigned char *)hello;
216 c_stream.next_out = compr;
218 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
219 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
220 err = deflate(&c_stream, Z_NO_FLUSH);
[all …]
/external/python/cpython2/Modules/zlib/
Dexample.c204 z_stream c_stream; /* compression stream */ local
208 c_stream.zalloc = zalloc;
209 c_stream.zfree = zfree;
210 c_stream.opaque = (voidpf)0;
212 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
215 c_stream.next_in = (z_const unsigned char *)hello;
216 c_stream.next_out = compr;
218 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
219 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
220 err = deflate(&c_stream, Z_NO_FLUSH);
[all …]