Lines Matching refs:lstream
91 struct gdb_lzma_stream *lstream;
125 lstream = XCNEW (struct gdb_lzma_stream);
126 lstream->section = section;
127 lstream->index = index;
129 return lstream;
140 struct gdb_lzma_stream *lstream = (struct gdb_lzma_stream *) stream;
153 if (lstream->data == NULL
154 || lstream->data_start > offset || offset >= lstream->data_end)
156 asection *section = lstream->section;
158 lzma_index_iter_init (&iter, lstream->index);
201 xfree (lstream->data);
202 lstream->data = uncompressed;
203 lstream->data_start = iter.block.uncompressed_file_offset;
204 lstream->data_end = (iter.block.uncompressed_file_offset
208 chunk_size = std::min (nbytes, (file_ptr) lstream->data_end - offset);
209 memcpy (buf, lstream->data + offset - lstream->data_start, chunk_size);
227 struct gdb_lzma_stream *lstream = (struct gdb_lzma_stream *) stream;
229 lzma_index_end (lstream->index, &gdb_lzma_allocator);
230 xfree (lstream->data);
231 xfree (lstream);
246 struct gdb_lzma_stream *lstream = (struct gdb_lzma_stream *) stream;
249 sb->st_size = lzma_index_uncompressed_size (lstream->index);