20 #define UNPADDED_SIZE_MIN LZMA_VLI_C(5)
23 #define UNPADDED_SIZE_MAX (LZMA_VLI_MAX & ~LZMA_VLI_C(3))
51 return 1 + lzma_vli_size(
count) + index_list_size + 4;
void lzma_index_prealloc(lzma_index *i, lzma_vli records)
static lzma_vli index_stream_size(lzma_vli blocks_size, lzma_vli count, lzma_vli index_list_size)
Calculate the total size of the Stream.
static lzma_vli vli_ceil4(lzma_vli vli)
Round the variable-length integer to the next multiple of four.
static lzma_vli index_size(lzma_vli count, lzma_vli index_list_size)
Calculate the size of the Index field including Index Padding.
static lzma_vli index_size_unpadded(lzma_vli count, lzma_vli index_list_size)
Calculate the size of the Index field excluding Index Padding.
uint32_t lzma_index_padding_size(const lzma_index *i)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
assert(limit<=UINT32_MAX/2)
#define LZMA_STREAM_HEADER_SIZE
Size of Stream Header and Stream Footer.
Definitions common to the whole liblzma library.
uint64_t lzma_vli
Variable-length integer type.
#define LZMA_VLI_C(n)
VLI constant suffix.
#define LZMA_VLI_MAX
Maximum supported value of a variable-length integer.