| /src/contrib/xz/src/liblzma/common/ |
| H A D | common.c | 177 lzma_strm_init(lzma_stream *strm) in lzma_strm_init() argument 179 if (strm == NULL) in lzma_strm_init() 182 if (strm->internal == NULL) { in lzma_strm_init() 183 strm->internal = lzma_alloc(sizeof(lzma_internal), in lzma_strm_init() 184 strm->allocator); in lzma_strm_init() 185 if (strm->internal == NULL) in lzma_strm_init() 188 strm->internal->next = LZMA_NEXT_CODER_INIT; in lzma_strm_init() 191 memzero(strm->internal->supported_actions, in lzma_strm_init() 192 sizeof(strm->internal->supported_actions)); in lzma_strm_init() 193 strm->internal->sequence = ISEQ_RUN; in lzma_strm_init() [all …]
|
| /src/sys/contrib/zstd/zlibWrapper/ |
| H A D | zstd_zlibwrapper.c | 108 z_streamp strm = (z_streamp) opaque; in ZWRAP_allocFunction() local 109 void* address = strm->zalloc(strm->opaque, 1, (uInt)size); in ZWRAP_allocFunction() 116 z_streamp strm = (z_streamp) opaque; in ZWRAP_freeFunction() local 117 strm->zfree(strm->opaque, address); in ZWRAP_freeFunction() 181 static ZWRAP_CCtx* ZWRAP_createCCtx(z_streamp strm) in ZWRAP_createCCtx() argument 186 if (strm->zalloc && strm->zfree) { in ZWRAP_createCCtx() 190 customMem.opaque = strm; in ZWRAP_createCCtx() 194 zwc->allocFunc = *strm; in ZWRAP_createCCtx() 229 static int ZWRAPC_finishWithError(ZWRAP_CCtx* zwc, z_streamp strm, int error) in ZWRAPC_finishWithError() argument 233 if (strm) strm->state = NULL; in ZWRAPC_finishWithError() [all …]
|
| H A D | gzwrite.c | 26 z_streamp strm = &(state.state->strm); local 46 strm->zalloc = Z_NULL; 47 strm->zfree = Z_NULL; 48 strm->opaque = Z_NULL; 49 ret = deflateInit2(strm, state.state->level, Z_DEFLATED, 57 strm->next_in = NULL; 65 strm->avail_out = state.state->size; 66 strm->next_out = state.state->out; 67 state.state->x.next = strm->next_out; 84 z_streamp strm = &(state.state->strm); local [all …]
|
| H A D | gzread.c | 71 z_streamp strm = &(state.state->strm); local 76 if (strm->avail_in) { /* copy what's there to the start */ 78 unsigned const char *q = strm->next_in; 79 unsigned n = strm->avail_in; 84 if (gz_load(state, state.state->in + strm->avail_in, 85 state.state->size - strm->avail_in, &got) == -1) 87 strm->avail_in += got; 88 strm->next_in = state.state->in; 105 z_streamp strm = &(state.state->strm); local 121 state.state->strm.zalloc = Z_NULL; [all …]
|
| /src/sys/contrib/zlib/test/ |
| H A D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
| H A D | minigzip.c | 195 z_stream strm; member 206 gz->strm.zalloc = myalloc; in gz_open() 207 gz->strm.zfree = myfree; in gz_open() 208 gz->strm.opaque = Z_NULL; in gz_open() 210 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); in gz_open() 212 gz->strm.next_in = 0; in gz_open() 213 gz->strm.avail_in = Z_NULL; in gz_open() 214 ret = inflateInit2(&(gz->strm), 15 + 16); in gz_open() 223 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); in gz_open() 241 z_stream *strm; in gzwrite() local [all …]
|
| /src/contrib/bzip2/ |
| H A D | bzlib.c | 152 ( bz_stream* strm, in BZ2_bzCompressInit() argument 162 if (strm == NULL || in BZ2_bzCompressInit() 168 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ2_bzCompressInit() 169 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ2_bzCompressInit() 173 s->strm = strm; in BZ2_bzCompressInit() 206 strm->state = s; in BZ2_bzCompressInit() 207 strm->total_in_lo32 = 0; in BZ2_bzCompressInit() 208 strm->total_in_hi32 = 0; in BZ2_bzCompressInit() 209 strm->total_out_lo32 = 0; in BZ2_bzCompressInit() 210 strm->total_out_hi32 = 0; in BZ2_bzCompressInit() [all …]
|
| /src/sys/contrib/zlib/ |
| H A D | gzwrite.c | 14 z_streamp strm = &(state->strm); in gz_init() local 34 strm->zalloc = Z_NULL; in gz_init() 35 strm->zfree = Z_NULL; in gz_init() 36 strm->opaque = Z_NULL; in gz_init() 37 ret = deflateInit2(strm, state->level, Z_DEFLATED, in gz_init() 45 strm->next_in = NULL; in gz_init() 53 strm->avail_out = state->size; in gz_init() 54 strm->next_out = state->out; in gz_init() 55 state->x.next = strm->next_out; in gz_init() 69 z_streamp strm = &(state->strm); in gz_comp() local [all …]
|
| H A D | inflate.c | 88 local int inflateStateCheck(z_streamp strm) { in inflateStateCheck() argument 90 if (strm == Z_NULL || in inflateStateCheck() 91 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) in inflateStateCheck() 93 state = (struct inflate_state FAR *)strm->state; in inflateStateCheck() 94 if (state == Z_NULL || state->strm != strm || in inflateStateCheck() 100 int ZEXPORT inflateResetKeep(z_streamp strm) { in inflateResetKeep() argument 103 if (inflateStateCheck(strm)) return Z_STREAM_ERROR; in inflateResetKeep() 104 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep() 105 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep() 106 strm->msg = Z_NULL; in inflateResetKeep() [all …]
|
| H A D | deflate.c | 219 local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) { in read_buf() argument 220 unsigned len = strm->avail_in; in read_buf() 225 strm->avail_in -= len; in read_buf() 227 zmemcpy(buf, strm->next_in, len); in read_buf() 228 if (strm->state->wrap == 1) { in read_buf() 229 strm->adler = adler32(strm->adler, buf, len); in read_buf() 232 else if (strm->state->wrap == 2) { in read_buf() 233 strm->adler = crc32(strm->adler, buf, len); in read_buf() 236 strm->next_in += len; in read_buf() 237 strm->total_in += len; in read_buf() [all …]
|
| H A D | gzread.c | 59 z_streamp strm = &(state->strm); in gz_avail() local 64 if (strm->avail_in) { /* copy what's there to the start */ in gz_avail() 66 unsigned const char *q = strm->next_in; in gz_avail() 69 unsigned n = strm->avail_in; in gz_avail() 76 if (gz_load(state, state->in + strm->avail_in, in gz_avail() 77 state->size - strm->avail_in, &got) == -1) in gz_avail() 79 strm->avail_in += got; in gz_avail() 80 strm->next_in = state->in; in gz_avail() 95 z_streamp strm = &(state->strm); in gz_look() local 111 state->strm.zalloc = Z_NULL; in gz_look() [all …]
|
| H A D | infback.c | 25 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, in inflateBackInit_() argument 33 if (strm == Z_NULL || window == Z_NULL || in inflateBackInit_() 36 strm->msg = Z_NULL; /* in case we return an error */ in inflateBackInit_() 37 if (strm->zalloc == (alloc_func)0) { in inflateBackInit_() 41 strm->zalloc = zcalloc; in inflateBackInit_() 42 strm->opaque = (voidpf)0; in inflateBackInit_() 45 if (strm->zfree == (free_func)0) in inflateBackInit_() 49 strm->zfree = zcfree; in inflateBackInit_() 51 state = (struct inflate_state FAR *)ZALLOC(strm, 1, in inflateBackInit_() 55 strm->state = (struct internal_state FAR *)state; in inflateBackInit_() [all …]
|
| H A D | zlib.h | 254 ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush); 367 ZEXTERN int ZEXPORT deflateEnd(z_streamp strm); 405 ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush); 525 ZEXTERN int ZEXPORT inflateEnd(z_streamp strm); 618 ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, 662 ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, 702 ZEXTERN int ZEXPORT deflateReset(z_streamp strm); 713 ZEXTERN int ZEXPORT deflateParams(z_streamp strm, 751 ZEXTERN int ZEXPORT deflateTune(z_streamp strm, 768 ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen); [all …]
|
| /src/usr.bin/gzip/ |
| H A D | unxz.c | 43 lzma_stream strm = LZMA_STREAM_INIT; in unxz() local 54 strm.next_in = ibuf; in unxz() 56 strm.avail_in = read(i, ibuf + prelen, sizeof(ibuf) - prelen); in unxz() 57 if (strm.avail_in == (size_t)-1) in unxz() 59 infile_newdata(strm.avail_in); in unxz() 60 strm.avail_in += prelen; in unxz() 61 *bytes_in = strm.avail_in; in unxz() 63 if ((ret = lzma_stream_decoder(&strm, UINT64_MAX, flags)) != LZMA_OK) in unxz() 66 strm.next_out = NULL; in unxz() 67 strm.avail_out = 0; in unxz() [all …]
|
| /src/contrib/llvm-project/lldb/source/Core/ |
| H A D | EmulateInstruction.cpp | 204 StreamString strm(Stream::eBinary, GetAddressByteSize(), GetByteOrder()); in WriteMemoryUnsigned() local 205 strm.PutMaxHex64(uval, uval_byte_size); in WriteMemoryUnsigned() 208 this, m_baton, context, addr, strm.GetString().data(), uval_byte_size); in WriteMemoryUnsigned() 319 StreamFile strm(stdout, false); in ReadMemoryDefault() local 320 strm.Printf(" Read from Memory (address = 0x%" PRIx64 ", length = %" PRIu64 in ReadMemoryDefault() 323 context.Dump(strm, instruction); in ReadMemoryDefault() 324 strm.EOL(); in ReadMemoryDefault() 334 StreamFile strm(stdout, false); in WriteMemoryDefault() local 335 strm.Printf(" Write to Memory (address = 0x%" PRIx64 ", length = %" PRIu64 in WriteMemoryDefault() 338 context.Dump(strm, instruction); in WriteMemoryDefault() [all …]
|
| H A D | DumpRegisterInfo.cpp | 19 void lldb_private::DumpRegisterInfo(Stream &strm, RegisterContext &ctx, in DumpRegisterInfo() argument 64 DoDumpRegisterInfo(strm, info.name, info.alt_name, info.byte_size, in DumpRegisterInfo() 70 static void DumpList(Stream &strm, const char *title, in DumpList() argument 76 strm.EOL(); in DumpList() 77 strm << title; in DumpList() 81 strm << ", "; in DumpList() 83 emitter(strm, elem); in DumpList() 88 Stream &strm, const char *name, const char *alt_name, uint32_t byte_size, in DoDumpRegisterInfo() argument 93 strm << " Name: " << name; in DoDumpRegisterInfo() 95 strm << " (" << alt_name << ")"; in DoDumpRegisterInfo() [all …]
|
| /src/contrib/llvm-project/lldb/source/Target/ |
| H A D | RegisterFlags.cpp | 246 static void DumpEnumerators(StreamString &strm, size_t indent, in DumpEnumerators() argument 277 strm << '\n' << std::string(indent, ' '); in DumpEnumerators() 284 strm << enumerator_string; in DumpEnumerators() 289 StreamString strm; in DumpEnums() local 303 strm << "\n\n"; in DumpEnums() 311 strm << name_string; in DumpEnums() 313 DumpEnumerators(strm, indent, current_width, max_width, enumerators); in DumpEnums() 316 return strm.GetString().str(); in DumpEnums() 319 void RegisterFlags::EnumsToXML(Stream &strm, llvm::StringSet<> &seen) const { in EnumsToXML() argument 324 enum_type->ToXML(strm, GetSize()); in EnumsToXML() [all …]
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_write_set_format_7zip.c | 1833 z_stream *strm; in compression_init_encoder_deflate() local 1837 strm = calloc(1, sizeof(*strm)); in compression_init_encoder_deflate() 1838 if (strm == NULL) { in compression_init_encoder_deflate() 1846 strm->next_in = (Bytef *)(uintptr_t)(const void *)lastrm->next_in; in compression_init_encoder_deflate() 1847 strm->avail_in = (uInt)lastrm->avail_in; in compression_init_encoder_deflate() 1848 strm->total_in = (uLong)lastrm->total_in; in compression_init_encoder_deflate() 1849 strm->next_out = lastrm->next_out; in compression_init_encoder_deflate() 1850 strm->avail_out = (uInt)lastrm->avail_out; in compression_init_encoder_deflate() 1851 strm->total_out = (uLong)lastrm->total_out; in compression_init_encoder_deflate() 1852 if (deflateInit2(strm, level, Z_DEFLATED, in compression_init_encoder_deflate() [all …]
|
| H A D | archive_read_support_format_cab.c | 2083 lzx_decode_init(struct lzx_stream *strm, int w_bits) in lzx_decode_init() argument 2090 if (strm->ds == NULL) { in lzx_decode_init() 2091 strm->ds = calloc(1, sizeof(*strm->ds)); in lzx_decode_init() 2092 if (strm->ds == NULL) in lzx_decode_init() 2095 ds = strm->ds; in lzx_decode_init() 2174 lzx_decode_free(struct lzx_stream *strm) in lzx_decode_free() argument 2177 if (strm->ds == NULL) in lzx_decode_free() 2179 free(strm->ds->w_buff); in lzx_decode_free() 2180 free(strm->ds->pos_tbl); in lzx_decode_free() 2181 lzx_huffman_free(&(strm->ds->at)); in lzx_decode_free() [all …]
|
| /src/sys/contrib/zstd/zlibWrapper/examples/ |
| H A D | minigzip.c | 180 z_stream strm; member 213 gz->strm.zalloc = myalloc; 214 gz->strm.zfree = myfree; 215 gz->strm.opaque = Z_NULL; 217 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); 219 gz->strm.next_in = 0; 220 gz->strm.avail_in = Z_NULL; 221 ret = inflateInit2(&(gz->strm), 15 + 16); 230 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); 246 z_stream *strm; local [all …]
|
| /src/contrib/xz/src/xz/ |
| H A D | coder.c | 35 static lzma_stream strm = LZMA_STREAM_INIT; variable 735 return strm.avail_in >= sizeof(magic) in is_format_xz() 745 if (strm.avail_in < 13) in is_format_lzma() 794 return strm.avail_in >= sizeof(magic) in is_format_lzip() 837 &strm, &mt_options); in coder_init() 841 &strm, active_filters, check); in coder_init() 845 ret = lzma_alone_encoder(&strm, in coder_init() 858 ret = lzma_raw_encoder(&strm, active_filters); in coder_init() 928 strm.total_in = 0; in coder_init() 929 strm.total_out = 0; in coder_init() [all …]
|
| /src/contrib/llvm-project/lldb/include/lldb/Core/ |
| H A D | ModuleSpec.h | 162 void Dump(Stream &strm) const { in Dump() argument 165 strm.PutCString("file = '"); in Dump() 166 strm << m_file; in Dump() 167 strm.PutCString("'"); in Dump() 172 strm.PutCString(", "); in Dump() 173 strm.PutCString("platform_file = '"); in Dump() 174 strm << m_platform_file; in Dump() 175 strm.PutCString("'"); in Dump() 180 strm.PutCString(", "); in Dump() 181 strm.PutCString("symbol_file = '"); in Dump() [all …]
|
| /src/contrib/xz/src/xzdec/ |
| H A D | xzdec.c | 169 uncompress(lzma_stream *strm, FILE *file, const char *filename) in uncompress() argument 175 ret = lzma_alone_decoder(strm, UINT64_MAX); in uncompress() 177 ret = lzma_stream_decoder(strm, UINT64_MAX, LZMA_CONCATENATED); in uncompress() 191 strm->avail_in = 0; in uncompress() 192 strm->next_out = out_buf; in uncompress() 193 strm->avail_out = BUFSIZ; in uncompress() 198 if (strm->avail_in == 0) { in uncompress() 199 strm->next_in = in_buf; in uncompress() 200 strm->avail_in = fread(in_buf, 1, BUFSIZ, file); in uncompress() 220 ret = lzma_code(strm, action); in uncompress() [all …]
|
| /src/usr.bin/mkuzip/ |
| H A D | mkuz_lzma.c | 41 lzma_stream strm; member 65 ulp->strm = (lzma_stream)LZMA_STREAM_INIT; in mkuz_lzma_init() 84 ret = lzma_stream_encoder(&ulp->strm, ulp->filters, LZMA_CHECK_CRC32); in mkuz_lzma_compress() 92 ulp->strm.next_in = iblk->data; in mkuz_lzma_compress() 93 ulp->strm.avail_in = iblk->info.len; in mkuz_lzma_compress() 94 ulp->strm.next_out = oblk->data; in mkuz_lzma_compress() 95 ulp->strm.avail_out = oblk->alen; in mkuz_lzma_compress() 97 ret = lzma_code(&ulp->strm, LZMA_FINISH); in mkuz_lzma_compress() 101 "out=%zd)", ret, (iblk->info.len - ulp->strm.avail_in), in mkuz_lzma_compress() 102 (oblk->alen - ulp->strm.avail_out)); in mkuz_lzma_compress() [all …]
|
| /src/contrib/llvm-project/lldb/source/Interpreter/ |
| H A D | Property.cpp | 237 bool Property::DumpQualifiedName(Stream &strm) const { in DumpQualifiedName() 239 if (m_value_sp->DumpQualifiedName(strm)) in DumpQualifiedName() 240 strm.PutChar('.'); in DumpQualifiedName() 241 strm << m_name; in DumpQualifiedName() 247 void Property::Dump(const ExecutionContext *exe_ctx, Stream &strm, in Dump() argument 254 strm << "settings set -f "; in Dump() 257 DumpQualifiedName(strm); in Dump() 259 strm.PutChar(' '); in Dump() 265 strm << "-- " << desc; in Dump() 269 strm.EOL(); in Dump() [all …]
|