Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/lzma
File: index.h
/**
[0] Fix | Delete
* \file lzma/index.h
[1] Fix | Delete
* \brief Handling of .xz Index and related information
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
/*
[5] Fix | Delete
* Author: Lasse Collin
[6] Fix | Delete
*
[7] Fix | Delete
* This file has been put into the public domain.
[8] Fix | Delete
* You can do whatever you want with this file.
[9] Fix | Delete
*
[10] Fix | Delete
* See ../lzma.h for information about liblzma as a whole.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
#ifndef LZMA_H_INTERNAL
[14] Fix | Delete
# error Never include this file directly. Use <lzma.h> instead.
[15] Fix | Delete
#endif
[16] Fix | Delete
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* \brief Opaque data type to hold the Index(es) and other information
[20] Fix | Delete
*
[21] Fix | Delete
* lzma_index often holds just one .xz Index and possibly the Stream Flags
[22] Fix | Delete
* of the same Stream and size of the Stream Padding field. However,
[23] Fix | Delete
* multiple lzma_indexes can be concatenated with lzma_index_cat() and then
[24] Fix | Delete
* there may be information about multiple Streams in the same lzma_index.
[25] Fix | Delete
*
[26] Fix | Delete
* Notes about thread safety: Only one thread may modify lzma_index at
[27] Fix | Delete
* a time. All functions that take non-const pointer to lzma_index
[28] Fix | Delete
* modify it. As long as no thread is modifying the lzma_index, getting
[29] Fix | Delete
* information from the same lzma_index can be done from multiple threads
[30] Fix | Delete
* at the same time with functions that take a const pointer to
[31] Fix | Delete
* lzma_index or use lzma_index_iter. The same iterator must be used
[32] Fix | Delete
* only by one thread at a time, of course, but there can be as many
[33] Fix | Delete
* iterators for the same lzma_index as needed.
[34] Fix | Delete
*/
[35] Fix | Delete
typedef struct lzma_index_s lzma_index;
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* \brief Iterator to get information about Blocks and Streams
[40] Fix | Delete
*/
[41] Fix | Delete
typedef struct {
[42] Fix | Delete
struct {
[43] Fix | Delete
/**
[44] Fix | Delete
* \brief Pointer to Stream Flags
[45] Fix | Delete
*
[46] Fix | Delete
* This is NULL if Stream Flags have not been set for
[47] Fix | Delete
* this Stream with lzma_index_stream_flags().
[48] Fix | Delete
*/
[49] Fix | Delete
const lzma_stream_flags *flags;
[50] Fix | Delete
[51] Fix | Delete
const void *reserved_ptr1;
[52] Fix | Delete
const void *reserved_ptr2;
[53] Fix | Delete
const void *reserved_ptr3;
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* \brief Stream number in the lzma_index
[57] Fix | Delete
*
[58] Fix | Delete
* The first Stream is 1.
[59] Fix | Delete
*/
[60] Fix | Delete
lzma_vli number;
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* \brief Number of Blocks in the Stream
[64] Fix | Delete
*
[65] Fix | Delete
* If this is zero, the block structure below has
[66] Fix | Delete
* undefined values.
[67] Fix | Delete
*/
[68] Fix | Delete
lzma_vli block_count;
[69] Fix | Delete
[70] Fix | Delete
/**
[71] Fix | Delete
* \brief Compressed start offset of this Stream
[72] Fix | Delete
*
[73] Fix | Delete
* The offset is relative to the beginning of the lzma_index
[74] Fix | Delete
* (i.e. usually the beginning of the .xz file).
[75] Fix | Delete
*/
[76] Fix | Delete
lzma_vli compressed_offset;
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* \brief Uncompressed start offset of this Stream
[80] Fix | Delete
*
[81] Fix | Delete
* The offset is relative to the beginning of the lzma_index
[82] Fix | Delete
* (i.e. usually the beginning of the .xz file).
[83] Fix | Delete
*/
[84] Fix | Delete
lzma_vli uncompressed_offset;
[85] Fix | Delete
[86] Fix | Delete
/**
[87] Fix | Delete
* \brief Compressed size of this Stream
[88] Fix | Delete
*
[89] Fix | Delete
* This includes all headers except the possible
[90] Fix | Delete
* Stream Padding after this Stream.
[91] Fix | Delete
*/
[92] Fix | Delete
lzma_vli compressed_size;
[93] Fix | Delete
[94] Fix | Delete
/**
[95] Fix | Delete
* \brief Uncompressed size of this Stream
[96] Fix | Delete
*/
[97] Fix | Delete
lzma_vli uncompressed_size;
[98] Fix | Delete
[99] Fix | Delete
/**
[100] Fix | Delete
* \brief Size of Stream Padding after this Stream
[101] Fix | Delete
*
[102] Fix | Delete
* If it hasn't been set with lzma_index_stream_padding(),
[103] Fix | Delete
* this defaults to zero. Stream Padding is always
[104] Fix | Delete
* a multiple of four bytes.
[105] Fix | Delete
*/
[106] Fix | Delete
lzma_vli padding;
[107] Fix | Delete
[108] Fix | Delete
lzma_vli reserved_vli1;
[109] Fix | Delete
lzma_vli reserved_vli2;
[110] Fix | Delete
lzma_vli reserved_vli3;
[111] Fix | Delete
lzma_vli reserved_vli4;
[112] Fix | Delete
} stream;
[113] Fix | Delete
[114] Fix | Delete
struct {
[115] Fix | Delete
/**
[116] Fix | Delete
* \brief Block number in the file
[117] Fix | Delete
*
[118] Fix | Delete
* The first Block is 1.
[119] Fix | Delete
*/
[120] Fix | Delete
lzma_vli number_in_file;
[121] Fix | Delete
[122] Fix | Delete
/**
[123] Fix | Delete
* \brief Compressed start offset of this Block
[124] Fix | Delete
*
[125] Fix | Delete
* This offset is relative to the beginning of the
[126] Fix | Delete
* lzma_index (i.e. usually the beginning of the .xz file).
[127] Fix | Delete
* Normally this is where you should seek in the .xz file
[128] Fix | Delete
* to start decompressing this Block.
[129] Fix | Delete
*/
[130] Fix | Delete
lzma_vli compressed_file_offset;
[131] Fix | Delete
[132] Fix | Delete
/**
[133] Fix | Delete
* \brief Uncompressed start offset of this Block
[134] Fix | Delete
*
[135] Fix | Delete
* This offset is relative to the beginning of the lzma_index
[136] Fix | Delete
* (i.e. usually the beginning of the .xz file).
[137] Fix | Delete
*
[138] Fix | Delete
* When doing random-access reading, it is possible that
[139] Fix | Delete
* the target offset is not exactly at Block boundary. One
[140] Fix | Delete
* will need to compare the target offset against
[141] Fix | Delete
* uncompressed_file_offset or uncompressed_stream_offset,
[142] Fix | Delete
* and possibly decode and throw away some amount of data
[143] Fix | Delete
* before reaching the target offset.
[144] Fix | Delete
*/
[145] Fix | Delete
lzma_vli uncompressed_file_offset;
[146] Fix | Delete
[147] Fix | Delete
/**
[148] Fix | Delete
* \brief Block number in this Stream
[149] Fix | Delete
*
[150] Fix | Delete
* The first Block is 1.
[151] Fix | Delete
*/
[152] Fix | Delete
lzma_vli number_in_stream;
[153] Fix | Delete
[154] Fix | Delete
/**
[155] Fix | Delete
* \brief Compressed start offset of this Block
[156] Fix | Delete
*
[157] Fix | Delete
* This offset is relative to the beginning of the Stream
[158] Fix | Delete
* containing this Block.
[159] Fix | Delete
*/
[160] Fix | Delete
lzma_vli compressed_stream_offset;
[161] Fix | Delete
[162] Fix | Delete
/**
[163] Fix | Delete
* \brief Uncompressed start offset of this Block
[164] Fix | Delete
*
[165] Fix | Delete
* This offset is relative to the beginning of the Stream
[166] Fix | Delete
* containing this Block.
[167] Fix | Delete
*/
[168] Fix | Delete
lzma_vli uncompressed_stream_offset;
[169] Fix | Delete
[170] Fix | Delete
/**
[171] Fix | Delete
* \brief Uncompressed size of this Block
[172] Fix | Delete
*
[173] Fix | Delete
* You should pass this to the Block decoder if you will
[174] Fix | Delete
* decode this Block. It will allow the Block decoder to
[175] Fix | Delete
* validate the uncompressed size.
[176] Fix | Delete
*/
[177] Fix | Delete
lzma_vli uncompressed_size;
[178] Fix | Delete
[179] Fix | Delete
/**
[180] Fix | Delete
* \brief Unpadded size of this Block
[181] Fix | Delete
*
[182] Fix | Delete
* You should pass this to the Block decoder if you will
[183] Fix | Delete
* decode this Block. It will allow the Block decoder to
[184] Fix | Delete
* validate the unpadded size.
[185] Fix | Delete
*/
[186] Fix | Delete
lzma_vli unpadded_size;
[187] Fix | Delete
[188] Fix | Delete
/**
[189] Fix | Delete
* \brief Total compressed size
[190] Fix | Delete
*
[191] Fix | Delete
* This includes all headers and padding in this Block.
[192] Fix | Delete
* This is useful if you need to know how many bytes
[193] Fix | Delete
* the Block decoder will actually read.
[194] Fix | Delete
*/
[195] Fix | Delete
lzma_vli total_size;
[196] Fix | Delete
[197] Fix | Delete
lzma_vli reserved_vli1;
[198] Fix | Delete
lzma_vli reserved_vli2;
[199] Fix | Delete
lzma_vli reserved_vli3;
[200] Fix | Delete
lzma_vli reserved_vli4;
[201] Fix | Delete
[202] Fix | Delete
const void *reserved_ptr1;
[203] Fix | Delete
const void *reserved_ptr2;
[204] Fix | Delete
const void *reserved_ptr3;
[205] Fix | Delete
const void *reserved_ptr4;
[206] Fix | Delete
} block;
[207] Fix | Delete
[208] Fix | Delete
/*
[209] Fix | Delete
* Internal data which is used to store the state of the iterator.
[210] Fix | Delete
* The exact format may vary between liblzma versions, so don't
[211] Fix | Delete
* touch these in any way.
[212] Fix | Delete
*/
[213] Fix | Delete
union {
[214] Fix | Delete
const void *p;
[215] Fix | Delete
size_t s;
[216] Fix | Delete
lzma_vli v;
[217] Fix | Delete
} internal[6];
[218] Fix | Delete
} lzma_index_iter;
[219] Fix | Delete
[220] Fix | Delete
[221] Fix | Delete
/**
[222] Fix | Delete
* \brief Operation mode for lzma_index_iter_next()
[223] Fix | Delete
*/
[224] Fix | Delete
typedef enum {
[225] Fix | Delete
LZMA_INDEX_ITER_ANY = 0,
[226] Fix | Delete
/**<
[227] Fix | Delete
* \brief Get the next Block or Stream
[228] Fix | Delete
*
[229] Fix | Delete
* Go to the next Block if the current Stream has at least
[230] Fix | Delete
* one Block left. Otherwise go to the next Stream even if
[231] Fix | Delete
* it has no Blocks. If the Stream has no Blocks
[232] Fix | Delete
* (lzma_index_iter.stream.block_count == 0),
[233] Fix | Delete
* lzma_index_iter.block will have undefined values.
[234] Fix | Delete
*/
[235] Fix | Delete
[236] Fix | Delete
LZMA_INDEX_ITER_STREAM = 1,
[237] Fix | Delete
/**<
[238] Fix | Delete
* \brief Get the next Stream
[239] Fix | Delete
*
[240] Fix | Delete
* Go to the next Stream even if the current Stream has
[241] Fix | Delete
* unread Blocks left. If the next Stream has at least one
[242] Fix | Delete
* Block, the iterator will point to the first Block.
[243] Fix | Delete
* If there are no Blocks, lzma_index_iter.block will have
[244] Fix | Delete
* undefined values.
[245] Fix | Delete
*/
[246] Fix | Delete
[247] Fix | Delete
LZMA_INDEX_ITER_BLOCK = 2,
[248] Fix | Delete
/**<
[249] Fix | Delete
* \brief Get the next Block
[250] Fix | Delete
*
[251] Fix | Delete
* Go to the next Block if the current Stream has at least
[252] Fix | Delete
* one Block left. If the current Stream has no Blocks left,
[253] Fix | Delete
* the next Stream with at least one Block is located and
[254] Fix | Delete
* the iterator will be made to point to the first Block of
[255] Fix | Delete
* that Stream.
[256] Fix | Delete
*/
[257] Fix | Delete
[258] Fix | Delete
LZMA_INDEX_ITER_NONEMPTY_BLOCK = 3
[259] Fix | Delete
/**<
[260] Fix | Delete
* \brief Get the next non-empty Block
[261] Fix | Delete
*
[262] Fix | Delete
* This is like LZMA_INDEX_ITER_BLOCK except that it will
[263] Fix | Delete
* skip Blocks whose Uncompressed Size is zero.
[264] Fix | Delete
*/
[265] Fix | Delete
[266] Fix | Delete
} lzma_index_iter_mode;
[267] Fix | Delete
[268] Fix | Delete
[269] Fix | Delete
/**
[270] Fix | Delete
* \brief Calculate memory usage of lzma_index
[271] Fix | Delete
*
[272] Fix | Delete
* On disk, the size of the Index field depends on both the number of Records
[273] Fix | Delete
* stored and how big values the Records store (due to variable-length integer
[274] Fix | Delete
* encoding). When the Index is kept in lzma_index structure, the memory usage
[275] Fix | Delete
* depends only on the number of Records/Blocks stored in the Index(es), and
[276] Fix | Delete
* in case of concatenated lzma_indexes, the number of Streams. The size in
[277] Fix | Delete
* RAM is almost always significantly bigger than in the encoded form on disk.
[278] Fix | Delete
*
[279] Fix | Delete
* This function calculates an approximate amount of memory needed hold
[280] Fix | Delete
* the given number of Streams and Blocks in lzma_index structure. This
[281] Fix | Delete
* value may vary between CPU architectures and also between liblzma versions
[282] Fix | Delete
* if the internal implementation is modified.
[283] Fix | Delete
*/
[284] Fix | Delete
extern LZMA_API(uint64_t) lzma_index_memusage(
[285] Fix | Delete
lzma_vli streams, lzma_vli blocks) lzma_nothrow;
[286] Fix | Delete
[287] Fix | Delete
[288] Fix | Delete
/**
[289] Fix | Delete
* \brief Calculate the memory usage of an existing lzma_index
[290] Fix | Delete
*
[291] Fix | Delete
* This is a shorthand for lzma_index_memusage(lzma_index_stream_count(i),
[292] Fix | Delete
* lzma_index_block_count(i)).
[293] Fix | Delete
*/
[294] Fix | Delete
extern LZMA_API(uint64_t) lzma_index_memused(const lzma_index *i)
[295] Fix | Delete
lzma_nothrow;
[296] Fix | Delete
[297] Fix | Delete
[298] Fix | Delete
/**
[299] Fix | Delete
* \brief Allocate and initialize a new lzma_index structure
[300] Fix | Delete
*
[301] Fix | Delete
* \return On success, a pointer to an empty initialized lzma_index is
[302] Fix | Delete
* returned. If allocation fails, NULL is returned.
[303] Fix | Delete
*/
[304] Fix | Delete
extern LZMA_API(lzma_index *) lzma_index_init(const lzma_allocator *allocator)
[305] Fix | Delete
lzma_nothrow;
[306] Fix | Delete
[307] Fix | Delete
[308] Fix | Delete
/**
[309] Fix | Delete
* \brief Deallocate lzma_index
[310] Fix | Delete
*
[311] Fix | Delete
* If i is NULL, this does nothing.
[312] Fix | Delete
*/
[313] Fix | Delete
extern LZMA_API(void) lzma_index_end(
[314] Fix | Delete
lzma_index *i, const lzma_allocator *allocator) lzma_nothrow;
[315] Fix | Delete
[316] Fix | Delete
[317] Fix | Delete
/**
[318] Fix | Delete
* \brief Add a new Block to lzma_index
[319] Fix | Delete
*
[320] Fix | Delete
* \param i Pointer to a lzma_index structure
[321] Fix | Delete
* \param allocator Pointer to lzma_allocator, or NULL to
[322] Fix | Delete
* use malloc()
[323] Fix | Delete
* \param unpadded_size Unpadded Size of a Block. This can be
[324] Fix | Delete
* calculated with lzma_block_unpadded_size()
[325] Fix | Delete
* after encoding or decoding the Block.
[326] Fix | Delete
* \param uncompressed_size Uncompressed Size of a Block. This can be
[327] Fix | Delete
* taken directly from lzma_block structure
[328] Fix | Delete
* after encoding or decoding the Block.
[329] Fix | Delete
*
[330] Fix | Delete
* Appending a new Block does not invalidate iterators. For example,
[331] Fix | Delete
* if an iterator was pointing to the end of the lzma_index, after
[332] Fix | Delete
* lzma_index_append() it is possible to read the next Block with
[333] Fix | Delete
* an existing iterator.
[334] Fix | Delete
*
[335] Fix | Delete
* \return - LZMA_OK
[336] Fix | Delete
* - LZMA_MEM_ERROR
[337] Fix | Delete
* - LZMA_DATA_ERROR: Compressed or uncompressed size of the
[338] Fix | Delete
* Stream or size of the Index field would grow too big.
[339] Fix | Delete
* - LZMA_PROG_ERROR
[340] Fix | Delete
*/
[341] Fix | Delete
extern LZMA_API(lzma_ret) lzma_index_append(
[342] Fix | Delete
lzma_index *i, const lzma_allocator *allocator,
[343] Fix | Delete
lzma_vli unpadded_size, lzma_vli uncompressed_size)
[344] Fix | Delete
lzma_nothrow lzma_attr_warn_unused_result;
[345] Fix | Delete
[346] Fix | Delete
[347] Fix | Delete
/**
[348] Fix | Delete
* \brief Set the Stream Flags
[349] Fix | Delete
*
[350] Fix | Delete
* Set the Stream Flags of the last (and typically the only) Stream
[351] Fix | Delete
* in lzma_index. This can be useful when reading information from the
[352] Fix | Delete
* lzma_index, because to decode Blocks, knowing the integrity check type
[353] Fix | Delete
* is needed.
[354] Fix | Delete
*
[355] Fix | Delete
* The given Stream Flags are copied into internal preallocated structure
[356] Fix | Delete
* in the lzma_index, thus the caller doesn't need to keep the *stream_flags
[357] Fix | Delete
* available after calling this function.
[358] Fix | Delete
*
[359] Fix | Delete
* \return - LZMA_OK
[360] Fix | Delete
* - LZMA_OPTIONS_ERROR: Unsupported stream_flags->version.
[361] Fix | Delete
* - LZMA_PROG_ERROR
[362] Fix | Delete
*/
[363] Fix | Delete
extern LZMA_API(lzma_ret) lzma_index_stream_flags(
[364] Fix | Delete
lzma_index *i, const lzma_stream_flags *stream_flags)
[365] Fix | Delete
lzma_nothrow lzma_attr_warn_unused_result;
[366] Fix | Delete
[367] Fix | Delete
[368] Fix | Delete
/**
[369] Fix | Delete
* \brief Get the types of integrity Checks
[370] Fix | Delete
*
[371] Fix | Delete
* If lzma_index_stream_flags() is used to set the Stream Flags for
[372] Fix | Delete
* every Stream, lzma_index_checks() can be used to get a bitmask to
[373] Fix | Delete
* indicate which Check types have been used. It can be useful e.g. if
[374] Fix | Delete
* showing the Check types to the user.
[375] Fix | Delete
*
[376] Fix | Delete
* The bitmask is 1 << check_id, e.g. CRC32 is 1 << 1 and SHA-256 is 1 << 10.
[377] Fix | Delete
*/
[378] Fix | Delete
extern LZMA_API(uint32_t) lzma_index_checks(const lzma_index *i)
[379] Fix | Delete
lzma_nothrow lzma_attr_pure;
[380] Fix | Delete
[381] Fix | Delete
[382] Fix | Delete
/**
[383] Fix | Delete
* \brief Set the amount of Stream Padding
[384] Fix | Delete
*
[385] Fix | Delete
* Set the amount of Stream Padding of the last (and typically the only)
[386] Fix | Delete
* Stream in the lzma_index. This is needed when planning to do random-access
[387] Fix | Delete
* reading within multiple concatenated Streams.
[388] Fix | Delete
*
[389] Fix | Delete
* By default, the amount of Stream Padding is assumed to be zero bytes.
[390] Fix | Delete
*
[391] Fix | Delete
* \return - LZMA_OK
[392] Fix | Delete
* - LZMA_DATA_ERROR: The file size would grow too big.
[393] Fix | Delete
* - LZMA_PROG_ERROR
[394] Fix | Delete
*/
[395] Fix | Delete
extern LZMA_API(lzma_ret) lzma_index_stream_padding(
[396] Fix | Delete
lzma_index *i, lzma_vli stream_padding)
[397] Fix | Delete
lzma_nothrow lzma_attr_warn_unused_result;
[398] Fix | Delete
[399] Fix | Delete
[400] Fix | Delete
/**
[401] Fix | Delete
* \brief Get the number of Streams
[402] Fix | Delete
*/
[403] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_stream_count(const lzma_index *i)
[404] Fix | Delete
lzma_nothrow lzma_attr_pure;
[405] Fix | Delete
[406] Fix | Delete
[407] Fix | Delete
/**
[408] Fix | Delete
* \brief Get the number of Blocks
[409] Fix | Delete
*
[410] Fix | Delete
* This returns the total number of Blocks in lzma_index. To get number
[411] Fix | Delete
* of Blocks in individual Streams, use lzma_index_iter.
[412] Fix | Delete
*/
[413] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_block_count(const lzma_index *i)
[414] Fix | Delete
lzma_nothrow lzma_attr_pure;
[415] Fix | Delete
[416] Fix | Delete
[417] Fix | Delete
/**
[418] Fix | Delete
* \brief Get the size of the Index field as bytes
[419] Fix | Delete
*
[420] Fix | Delete
* This is needed to verify the Backward Size field in the Stream Footer.
[421] Fix | Delete
*/
[422] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_size(const lzma_index *i)
[423] Fix | Delete
lzma_nothrow lzma_attr_pure;
[424] Fix | Delete
[425] Fix | Delete
[426] Fix | Delete
/**
[427] Fix | Delete
* \brief Get the total size of the Stream
[428] Fix | Delete
*
[429] Fix | Delete
* If multiple lzma_indexes have been combined, this works as if the Blocks
[430] Fix | Delete
* were in a single Stream. This is useful if you are going to combine
[431] Fix | Delete
* Blocks from multiple Streams into a single new Stream.
[432] Fix | Delete
*/
[433] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_stream_size(const lzma_index *i)
[434] Fix | Delete
lzma_nothrow lzma_attr_pure;
[435] Fix | Delete
[436] Fix | Delete
[437] Fix | Delete
/**
[438] Fix | Delete
* \brief Get the total size of the Blocks
[439] Fix | Delete
*
[440] Fix | Delete
* This doesn't include the Stream Header, Stream Footer, Stream Padding,
[441] Fix | Delete
* or Index fields.
[442] Fix | Delete
*/
[443] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_total_size(const lzma_index *i)
[444] Fix | Delete
lzma_nothrow lzma_attr_pure;
[445] Fix | Delete
[446] Fix | Delete
[447] Fix | Delete
/**
[448] Fix | Delete
* \brief Get the total size of the file
[449] Fix | Delete
*
[450] Fix | Delete
* When no lzma_indexes have been combined with lzma_index_cat() and there is
[451] Fix | Delete
* no Stream Padding, this function is identical to lzma_index_stream_size().
[452] Fix | Delete
* If multiple lzma_indexes have been combined, this includes also the headers
[453] Fix | Delete
* of each separate Stream and the possible Stream Padding fields.
[454] Fix | Delete
*/
[455] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_file_size(const lzma_index *i)
[456] Fix | Delete
lzma_nothrow lzma_attr_pure;
[457] Fix | Delete
[458] Fix | Delete
[459] Fix | Delete
/**
[460] Fix | Delete
* \brief Get the uncompressed size of the file
[461] Fix | Delete
*/
[462] Fix | Delete
extern LZMA_API(lzma_vli) lzma_index_uncompressed_size(const lzma_index *i)
[463] Fix | Delete
lzma_nothrow lzma_attr_pure;
[464] Fix | Delete
[465] Fix | Delete
[466] Fix | Delete
/**
[467] Fix | Delete
* \brief Initialize an iterator
[468] Fix | Delete
*
[469] Fix | Delete
* \param iter Pointer to a lzma_index_iter structure
[470] Fix | Delete
* \param i lzma_index to which the iterator will be associated
[471] Fix | Delete
*
[472] Fix | Delete
* This function associates the iterator with the given lzma_index, and calls
[473] Fix | Delete
* lzma_index_iter_rewind() on the iterator.
[474] Fix | Delete
*
[475] Fix | Delete
* This function doesn't allocate any memory, thus there is no
[476] Fix | Delete
* lzma_index_iter_end(). The iterator is valid as long as the
[477] Fix | Delete
* associated lzma_index is valid, that is, until lzma_index_end() or
[478] Fix | Delete
* using it as source in lzma_index_cat(). Specifically, lzma_index doesn't
[479] Fix | Delete
* become invalid if new Blocks are added to it with lzma_index_append() or
[480] Fix | Delete
* if it is used as the destination in lzma_index_cat().
[481] Fix | Delete
*
[482] Fix | Delete
* It is safe to make copies of an initialized lzma_index_iter, for example,
[483] Fix | Delete
* to easily restart reading at some particular position.
[484] Fix | Delete
*/
[485] Fix | Delete
extern LZMA_API(void) lzma_index_iter_init(
[486] Fix | Delete
lzma_index_iter *iter, const lzma_index *i) lzma_nothrow;
[487] Fix | Delete
[488] Fix | Delete
[489] Fix | Delete
/**
[490] Fix | Delete
* \brief Rewind the iterator
[491] Fix | Delete
*
[492] Fix | Delete
* Rewind the iterator so that next call to lzma_index_iter_next() will
[493] Fix | Delete
* return the first Block or Stream.
[494] Fix | Delete
*/
[495] Fix | Delete
extern LZMA_API(void) lzma_index_iter_rewind(lzma_index_iter *iter)
[496] Fix | Delete
lzma_nothrow;
[497] Fix | Delete
[498] Fix | Delete
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function