/freebsd/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 …]
|
/freebsd/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 | 167 z_stream strm; member 178 gz->strm.zalloc = myalloc; in gz_open() 179 gz->strm.zfree = myfree; in gz_open() 180 gz->strm.opaque = Z_NULL; in gz_open() 182 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); in gz_open() 184 gz->strm.next_in = 0; in gz_open() 185 gz->strm.avail_in = Z_NULL; in gz_open() 186 ret = inflateInit2(&(gz->strm), 15 + 16); in gz_open() 195 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); in gz_open() 213 z_stream *strm; in gzwrite() local [all …]
|
/freebsd/contrib/bzip2/ |
H A D | bzlib.c | 152 ( bz_stream* strm, in BZ_API() 162 if (strm == NULL || in BZ_API() 168 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API() 169 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API() 173 s->strm = strm; in BZ_API() 206 strm->state = s; in BZ_API() 207 strm->total_in_lo32 = 0; in BZ_API() 208 strm->total_in_hi32 = 0; in BZ_API() 209 strm->total_out_lo32 = 0; in BZ_API() 210 strm->total_out_hi32 = 0; in BZ_API() [all …]
|
/freebsd/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 | 94 local int inflateStateCheck(z_streamp strm) { in inflateStateCheck() argument 96 if (strm == Z_NULL || in inflateStateCheck() 97 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) in inflateStateCheck() 99 state = (struct inflate_state FAR *)strm->state; in inflateStateCheck() 100 if (state == Z_NULL || state->strm != strm || in inflateStateCheck() 106 int ZEXPORT inflateResetKeep(z_streamp strm) { in inflateResetKeep() argument 109 if (inflateStateCheck(strm)) return Z_STREAM_ERROR; in inflateResetKeep() 110 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep() 111 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep() 112 strm->msg = Z_NULL; in inflateResetKeep() [all …]
|
H A D | deflate.c | 218 local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) { in read_buf() argument 219 unsigned len = strm->avail_in; in read_buf() 224 strm->avail_in -= len; in read_buf() 226 zmemcpy(buf, strm->next_in, len); in read_buf() 227 if (strm->state->wrap == 1) { in read_buf() 228 strm->adler = adler32(strm->adler, buf, len); in read_buf() 231 else if (strm->state->wrap == 2) { in read_buf() 232 strm->adler = crc32(strm->adler, buf, len); in read_buf() 235 strm->next_in += len; in read_buf() 236 strm->total_in += len; in read_buf() [all …]
|
H A D | gzread.c | 46 z_streamp strm = &(state->strm); in gz_avail() local 51 if (strm->avail_in) { /* copy what's there to the start */ in gz_avail() 53 unsigned const char *q = strm->next_in; in gz_avail() 54 unsigned n = strm->avail_in; in gz_avail() 59 if (gz_load(state, state->in + strm->avail_in, in gz_avail() 60 state->size - strm->avail_in, &got) == -1) in gz_avail() 62 strm->avail_in += got; in gz_avail() 63 strm->next_in = state->in; in gz_avail() 78 z_streamp strm = &(state->strm); in gz_look() local 94 state->strm.zalloc = Z_NULL; in gz_look() [all …]
|
H A D | zlib.h | 250 ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush); 363 ZEXTERN int ZEXPORT deflateEnd(z_streamp strm); 401 ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush); 521 ZEXTERN int ZEXPORT inflateEnd(z_streamp strm); 611 ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, 655 ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, 695 ZEXTERN int ZEXPORT deflateReset(z_streamp strm); 706 ZEXTERN int ZEXPORT deflateParams(z_streamp strm, 744 ZEXTERN int ZEXPORT deflateTune(z_streamp strm, 761 ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, [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 …]
|
/freebsd/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 …]
|
/freebsd/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, instructio in WriteMemoryDefault() 347 StreamFile strm(stdout, false); ReadRegisterDefault() local 364 StreamFile strm(stdout, false); WriteRegisterDefault() local 373 Dump(Stream & strm,EmulateInstruction * instruction) const Dump() argument [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 …]
|
/freebsd/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 …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_7zip.c | 1719 z_stream *strm; in compression_init_encoder_deflate() local 1723 strm = calloc(1, sizeof(*strm)); in compression_init_encoder_deflate() 1724 if (strm == NULL) { in compression_init_encoder_deflate() 1732 strm->next_in = (Bytef *)(uintptr_t)(const void *)lastrm->next_in; in compression_init_encoder_deflate() 1733 strm->avail_in = (uInt)lastrm->avail_in; in compression_init_encoder_deflate() 1734 strm->total_in = (uLong)lastrm->total_in; in compression_init_encoder_deflate() 1735 strm->next_out = lastrm->next_out; in compression_init_encoder_deflate() 1736 strm->avail_out = (uInt)lastrm->avail_out; in compression_init_encoder_deflate() 1737 strm->total_out = (uLong)lastrm->total_out; in compression_init_encoder_deflate() 1738 if (deflateInit2(strm, level, Z_DEFLATED, in compression_init_encoder_deflate() [all …]
|
H A D | archive_read_support_format_cab.c | 2078 lzx_decode_init(struct lzx_stream *strm, int w_bits) in lzx_decode_init() argument 2085 if (strm->ds == NULL) { in lzx_decode_init() 2086 strm->ds = calloc(1, sizeof(*strm->ds)); in lzx_decode_init() 2087 if (strm->ds == NULL) in lzx_decode_init() 2090 ds = strm->ds; in lzx_decode_init() 2169 lzx_decode_free(struct lzx_stream *strm) in lzx_decode_free() argument 2172 if (strm->ds == NULL) in lzx_decode_free() 2174 free(strm->ds->w_buff); in lzx_decode_free() 2175 free(strm->ds->pos_tbl); in lzx_decode_free() 2176 lzx_huffman_free(&(strm->ds->at)); in lzx_decode_free() [all …]
|
H A D | archive_read_support_format_lha.c | 202 struct lzh_stream strm; member 1560 r = lzh_decode_init(&(lha->strm), lha->method); in lha_read_data_lzh() 1584 lha->strm.avail_out = 0; in lha_read_data_lzh() 1585 lha->strm.total_out = 0; in lha_read_data_lzh() 1594 lha->strm.next_in = __archive_read_ahead(a, 1, &bytes_avail); in lha_read_data_lzh() 1603 lha->strm.avail_in = (int)bytes_avail; in lha_read_data_lzh() 1604 lha->strm.total_in = 0; in lha_read_data_lzh() 1605 lha->strm.avail_out = 0; in lha_read_data_lzh() 1607 r = lzh_decode(&(lha->strm), bytes_avail == lha->entry_bytes_remaining); in lha_read_data_lzh() 1619 lha->entry_unconsumed = lha->strm.total_in; in lha_read_data_lzh() [all …]
|
/freebsd/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 …]
|
/freebsd/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 …]
|
/freebsd/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 …]
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectTarget.cpp | 77 bool show_stopped_process_status, Stream &strm) { in DumpTargetInfo() argument 95 strm.Printf("%starget #%u%s: %s", prefix_cstr ? prefix_cstr : "", target_idx, in DumpTargetInfo() 100 strm.Printf("%sarch=", properties++ > 0 ? ", " : " ( "); in DumpTargetInfo() 101 target_arch.DumpTriple(strm.AsRawOstream()); in DumpTargetInfo() 106 strm.Format("{0}platform={1}", properties++ > 0 ? ", " : " ( ", in DumpTargetInfo() 118 strm.Printf("%spid=%" PRIu64, properties++ > 0 ? ", " : " ( ", pid); in DumpTargetInfo() 119 strm.Printf("%sstate=%s", properties++ > 0 ? ", " : " ( ", state_cstr); in DumpTargetInfo() 122 strm.PutCString(" )\n"); in DumpTargetInfo() 124 strm.EOL(); in DumpTargetInfo() 131 process_sp->GetStatus(strm); in DumpTargetInfo() [all …]
|
/freebsd/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 …]
|
H A D | Options.cpp | 225 StreamString strm; in GetLongOptions() local 270 void Options::OutputFormattedUsageText(Stream &strm, in OutputFormattedUsageText() argument 286 if (static_cast<uint32_t>(actual_text.length() + strm.GetIndentLevel()) < in OutputFormattedUsageText() 289 strm.Indent(actual_text); in OutputFormattedUsageText() 290 strm.EOL(); in OutputFormattedUsageText() 294 int text_width = output_max_columns - strm.GetIndentLevel() - 1; in OutputFormattedUsageText() 319 strm.EOL(); in OutputFormattedUsageText() 320 strm.Indent(); in OutputFormattedUsageText() 323 strm.Write(actual_text.c_str() + start, sub_len); in OutputFormattedUsageText() 326 strm.EOL(); in OutputFormattedUsageText() [all …]
|