Lines Matching refs:strm
38 lzma_stream strm = LZMA_STREAM_INIT; in lzma_decompress_to_file() local
53 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in lzma_decompress_to_file()
60 strm.next_in = NULL; in lzma_decompress_to_file()
61 strm.avail_in = 0; in lzma_decompress_to_file()
62 strm.next_out = buf_out; in lzma_decompress_to_file()
63 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file()
66 if (strm.avail_in == 0 && !feof(infile)) { in lzma_decompress_to_file()
67 strm.next_in = buf_in; in lzma_decompress_to_file()
68 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file()
79 ret = lzma_code(&strm, action); in lzma_decompress_to_file()
81 if (strm.avail_out == 0 || ret == LZMA_STREAM_END) { in lzma_decompress_to_file()
82 ssize_t write_size = sizeof(buf_out) - strm.avail_out; in lzma_decompress_to_file()
89 strm.next_out = buf_out; in lzma_decompress_to_file()
90 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file()
104 lzma_end(&strm); in lzma_decompress_to_file()