• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/xz/src/liblzma/api/lzma/

Lines Matching defs:lzma_index

23  * lzma_index often holds just one .xz Index and possibly the Stream Flags
26 * there may be information about multiple Streams in the same lzma_index.
28 * Notes about thread safety: Only one thread may modify lzma_index at
29 * a time. All functions that take non-const pointer to lzma_index
30 * modify it. As long as no thread is modifying the lzma_index, getting
31 * information from the same lzma_index can be done from multiple threads
33 * lzma_index or use lzma_index_iter. The same iterator must be used
35 * iterators for the same lzma_index as needed.
37 typedef struct lzma_index_s lzma_index;
58 * \brief Stream number in the lzma_index
75 * The offset is relative to the beginning of the lzma_index
83 * The offset is relative to the beginning of the lzma_index
128 * lzma_index (i.e. usually the beginning of the .xz file).
137 * This offset is relative to the beginning of the lzma_index
272 * \brief Calculate memory usage of lzma_index
276 * encoding). When the Index is kept in lzma_index structure, the memory usage
282 * the given number of Streams and Blocks in lzma_index structure. This
291 * \brief Calculate the memory usage of an existing lzma_index
296 extern LZMA_API(uint64_t) lzma_index_memused(const lzma_index *i)
301 * \brief Allocate and initialize a new lzma_index structure
303 * \return On success, a pointer to an empty initialized lzma_index is
306 extern LZMA_API(lzma_index *) lzma_index_init(lzma_allocator *allocator)
311 * \brief Deallocate lzma_index
315 extern LZMA_API(void) lzma_index_end(lzma_index *i, lzma_allocator *allocator)
320 * \brief Add a new Block to lzma_index
322 * \param i Pointer to a lzma_index structure
333 * if an iterator was pointing to the end of the lzma_index, after
344 lzma_index *i, lzma_allocator *allocator,
353 * in lzma_index. This can be useful when reading information from the
354 * lzma_index, because to decode Blocks, knowing the integrity check type
358 * in the lzma_index, thus the caller doesn't need to keep the *stream_flags
366 lzma_index *i, const lzma_stream_flags *stream_flags)
380 extern LZMA_API(uint32_t) lzma_index_checks(const lzma_index *i)
388 * Stream in the lzma_index. This is needed when planning to do random-access
398 lzma_index *i, lzma_vli stream_padding)
405 extern LZMA_API(lzma_vli) lzma_index_stream_count(const lzma_index *i)
412 * This returns the total number of Blocks in lzma_index. To get number
415 extern LZMA_API(lzma_vli) lzma_index_block_count(const lzma_index *i)
424 extern LZMA_API(lzma_vli) lzma_index_size(const lzma_index *i)
435 extern LZMA_API(lzma_vli) lzma_index_stream_size(const lzma_index *i)
445 extern LZMA_API(lzma_vli) lzma_index_total_size(const lzma_index *i)
457 extern LZMA_API(lzma_vli) lzma_index_file_size(const lzma_index *i)
464 extern LZMA_API(lzma_vli) lzma_index_uncompressed_size(const lzma_index *i)
472 * \param i lzma_index to which the iterator will be associated
474 * This function associates the iterator with the given lzma_index, and calls
479 * associated lzma_index is valid, that is, until lzma_index_end() or
480 * using it as source in lzma_index_cat(). Specifically, lzma_index doesn't
488 lzma_index_iter *iter, const lzma_index *i) lzma_nothrow;
553 * \param dest lzma_index after which src is appended
554 * \param src lzma_index to be appended after dest. If this
568 lzma_index *dest, lzma_index *src, lzma_allocator *allocator)
573 * \brief Duplicate lzma_index
575 * \return A copy of the lzma_index, or NULL if memory allocation failed.
577 extern LZMA_API(lzma_index *) lzma_index_dup(
578 const lzma_index *i, lzma_allocator *allocator)
586 * \param i Pointer to lzma_index which should be encoded.
597 lzma_stream *strm, const lzma_index *i)
610 * to a new lzma_index, which the application
612 * \param memlimit How much memory the resulting lzma_index is
625 lzma_stream *strm, lzma_index **i, uint64_t memlimit)
632 * \param i lzma_index to be encoded
648 extern LZMA_API(lzma_ret) lzma_index_buffer_encode(const lzma_index *i,
656 * lzma_index, which the application has to
662 * lzma_index is allowed to require. The value
679 extern LZMA_API(lzma_ret) lzma_index_buffer_decode(lzma_index **i,