#include "Precomp.h"
#include <string.h>
#include "7zCrc.h"
#include "CpuArch.h"
#include "Xz.h"
#define XZ_FOOTER_SIG_CHECK(p) …
SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream)
{ … }
#define READ_VARINT_AND_CHECK(buf, pos, size, res) …
SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, BoolInt *isIndex, UInt32 *headerSizeRes)
{ … }
#define ADD_SIZE_CHECK(size, val) …
UInt64 Xz_GetUnpackSize(const CXzStream *p)
{ … }
UInt64 Xz_GetPackSize(const CXzStream *p)
{ … }
static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAllocPtr alloc)
{ … }
static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAllocPtr alloc)
{ … }
static SRes LookInStream_SeekRead_ForArc(ILookInStream *stream, UInt64 offset, void *buf, size_t size)
{ … }
static SRes Xz_ReadBackward(CXzStream *p, ILookInStream *stream, Int64 *startOffset, ISzAllocPtr alloc)
{ … }
void Xzs_Construct(CXzs *p)
{ … }
void Xzs_Free(CXzs *p, ISzAllocPtr alloc)
{ … }
UInt64 Xzs_GetNumBlocks(const CXzs *p)
{ … }
UInt64 Xzs_GetUnpackSize(const CXzs *p)
{ … }
SRes Xzs_ReadBackward(CXzs *p, ILookInStream *stream, Int64 *startOffset, ICompressProgress *progress, ISzAllocPtr alloc)
{ … }