/external/rust/crates/libz-sys/src/zlib-ng/test/ |
D | example.c | 240 PREFIX3(stream) c_stream; /* compression stream */ in test_deflate() 244 c_stream.zalloc = zalloc; in test_deflate() 245 c_stream.zfree = zfree; in test_deflate() 246 c_stream.opaque = (void *)0; in test_deflate() 247 c_stream.total_in = 0; in test_deflate() 248 c_stream.total_out = 0; in test_deflate() 250 err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); in test_deflate() 253 c_stream.next_in = (z_const unsigned char *)hello; in test_deflate() 254 c_stream.next_out = compr; in test_deflate() 256 while (c_stream.total_in != len && c_stream.total_out < comprLen) { in test_deflate() [all …]
|
D | minideflate.c | 47 PREFIX3(stream) c_stream; /* compression stream */ in deflate_params() 65 c_stream.zalloc = NULL; in deflate_params() 66 c_stream.zfree = NULL; in deflate_params() 67 c_stream.opaque = (void *)0; in deflate_params() 68 c_stream.total_in = 0; in deflate_params() 69 c_stream.total_out = 0; in deflate_params() 71 err = PREFIX(deflateInit2)(&c_stream, level, Z_DEFLATED, window_bits, mem_level, strategy); in deflate_params() 81 c_stream.next_in = (z_const uint8_t *)read_buf; in deflate_params() 82 c_stream.next_out = write_buf; in deflate_params() 83 c_stream.avail_in = read; in deflate_params() [all …]
|
/external/rust/crates/libz-sys/src/zlib/contrib/pascal/ |
D | example.pas | 185 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/zstd/zlibWrapper/examples/ |
D | example.c | 229 z_stream c_stream; /* compression stream */ local 233 c_stream.zalloc = zalloc; 234 c_stream.zfree = zfree; 235 c_stream.opaque = (voidpf)0; 237 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); 240 c_stream.next_in = (z_const unsigned char *)hello; 241 c_stream.next_out = compr; 243 while (c_stream.total_in != len && c_stream.total_out < comprLen) { 244 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ 245 err = deflate(&c_stream, Z_NO_FLUSH); [all …]
|
D | example_original.c | 221 z_stream c_stream; /* compression stream */ local 225 c_stream.zalloc = zalloc; 226 c_stream.zfree = zfree; 227 c_stream.opaque = (voidpf)0; 229 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); 232 c_stream.next_in = (z_const unsigned char *)hello; 233 c_stream.next_out = compr; 235 while (c_stream.total_in != len && c_stream.total_out < comprLen) { 236 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ 237 err = deflate(&c_stream, Z_NO_FLUSH); [all …]
|
/external/rust/crates/libz-sys/src/zlib/test/ |
D | example.c | 204 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/ |
D | example.c | 204 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/oss-fuzz/projects/zlib/ |
D | example_large_fuzzer.c | 28 z_stream c_stream; /* compression stream */ in test_large_deflate() local 31 c_stream.zalloc = zalloc; in test_large_deflate() 32 c_stream.zfree = zfree; in test_large_deflate() 33 c_stream.opaque = (void *)0; in test_large_deflate() 35 err = deflateInit(&c_stream, Z_BEST_COMPRESSION); in test_large_deflate() 38 c_stream.next_out = compr; in test_large_deflate() 39 c_stream.avail_out = (unsigned int)comprLen; in test_large_deflate() 44 c_stream.next_in = uncompr; in test_large_deflate() 45 c_stream.avail_in = (unsigned int)uncomprLen; in test_large_deflate() 46 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate() [all …]
|
D | example_small_fuzzer.c | 26 z_stream c_stream; /* compression stream */ in test_deflate() local 30 c_stream.zalloc = zalloc; in test_deflate() 31 c_stream.zfree = zfree; in test_deflate() 32 c_stream.opaque = (void *)0; in test_deflate() 34 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in test_deflate() 37 c_stream.next_in = (Bytef *)data; in test_deflate() 38 c_stream.next_out = compr; in test_deflate() 40 while (c_stream.total_in != len && c_stream.total_out < comprLen) { in test_deflate() 41 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ in test_deflate() 42 err = deflate(&c_stream, Z_NO_FLUSH); in test_deflate() [all …]
|
D | example_flush_fuzzer.c | 26 z_stream c_stream; /* compression stream */ in test_flush() local 30 c_stream.zalloc = zalloc; in test_flush() 31 c_stream.zfree = zfree; in test_flush() 32 c_stream.opaque = (void *)0; in test_flush() 34 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in test_flush() 37 c_stream.next_in = (Bytef *)data; in test_flush() 38 c_stream.next_out = compr; in test_flush() 39 c_stream.avail_in = 3; in test_flush() 40 c_stream.avail_out = (unsigned int)*comprLen; in test_flush() 41 err = deflate(&c_stream, Z_FULL_FLUSH); in test_flush() [all …]
|
D | example_dict_fuzzer.c | 29 z_stream c_stream; /* compression stream */ in test_dict_deflate() local 57 c_stream.zalloc = zalloc; in test_dict_deflate() 58 c_stream.zfree = zfree; in test_dict_deflate() 59 c_stream.opaque = (void *)0; in test_dict_deflate() 61 err = deflateInit2(&c_stream, level, method, windowBits, memLevel, strategy); in test_dict_deflate() 65 &c_stream, (const unsigned char *)data, dictionaryLen); in test_dict_deflate() 69 *comprLen = 100 + 2 * deflateBound(&c_stream, dataLen); in test_dict_deflate() 72 dictId = c_stream.adler; in test_dict_deflate() 73 c_stream.next_out = *compr; in test_dict_deflate() 74 c_stream.avail_out = (unsigned int)(*comprLen); in test_dict_deflate() [all …]
|
/external/rust/crates/libz-sys/src/zlib-ng/test/fuzz/ |
D | example_large_fuzzer.c | 33 PREFIX3(stream) c_stream; /* compression stream */ in test_large_deflate() 36 c_stream.zalloc = zalloc; in test_large_deflate() 37 c_stream.zfree = zfree; in test_large_deflate() 38 c_stream.opaque = (void *)0; in test_large_deflate() 40 err = PREFIX(deflateInit)(&c_stream, Z_BEST_COMPRESSION); in test_large_deflate() 43 c_stream.next_out = compr; in test_large_deflate() 44 c_stream.avail_out = (unsigned int)comprLen; in test_large_deflate() 49 c_stream.next_in = uncompr; in test_large_deflate() 50 c_stream.avail_in = (unsigned int)uncomprLen; in test_large_deflate() 51 err = PREFIX(deflate)(&c_stream, Z_NO_FLUSH); in test_large_deflate() [all …]
|
D | example_small_fuzzer.c | 32 PREFIX3(stream) c_stream; /* compression stream */ in test_deflate() 36 c_stream.zalloc = zalloc; in test_deflate() 37 c_stream.zfree = zfree; in test_deflate() 38 c_stream.opaque = (void *)0; in test_deflate() 40 err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); in test_deflate() 43 c_stream.next_in = (const unsigned char *)data; in test_deflate() 44 c_stream.next_out = compr; in test_deflate() 46 while (c_stream.total_in != len && c_stream.total_out < comprLen) { in test_deflate() 47 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ in test_deflate() 48 err = PREFIX(deflate)(&c_stream, Z_NO_FLUSH); in test_deflate() [all …]
|
D | example_flush_fuzzer.c | 32 PREFIX3(stream) c_stream; /* compression stream */ in test_flush() 36 c_stream.zalloc = zalloc; in test_flush() 37 c_stream.zfree = zfree; in test_flush() 38 c_stream.opaque = (void *)0; in test_flush() 40 err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); in test_flush() 43 c_stream.next_in = (const unsigned char *)data; in test_flush() 44 c_stream.next_out = compr; in test_flush() 45 c_stream.avail_in = 3; in test_flush() 46 c_stream.avail_out = (unsigned int)*comprLen; in test_flush() 47 err = PREFIX(deflate)(&c_stream, Z_FULL_FLUSH); in test_flush() [all …]
|
D | example_dict_fuzzer.c | 34 PREFIX3(stream) c_stream; /* compression stream */ in test_dict_deflate() 62 c_stream.zalloc = zalloc; in test_dict_deflate() 63 c_stream.zfree = zfree; in test_dict_deflate() 64 c_stream.opaque = (void *)0; in test_dict_deflate() 66 err = PREFIX(deflateInit2)(&c_stream, level, method, windowBits, memLevel, in test_dict_deflate() 71 &c_stream, (const unsigned char *)data, dictionaryLen); in test_dict_deflate() 75 *comprLen = 100 + 2 * PREFIX(deflateBound)(&c_stream, (unsigned long)dataLen); in test_dict_deflate() 78 dictId = c_stream.adler; in test_dict_deflate() 79 c_stream.next_out = *compr; in test_dict_deflate() 80 c_stream.avail_out = (unsigned int)(*comprLen); in test_dict_deflate() [all …]
|
/external/tensorflow/tensorflow/c/ |
D | kernels.cc | 216 auto c_stream = static_cast<stream_executor::CStream*>( in TF_GetStream() 218 return c_stream->Handle(); in TF_GetStream()
|