chromium/third_party/lzma_sdk/C/XzIn.c

/* XzIn.c - Xz input
2021-09-04 : Igor Pavlov : Public domain */

#include "Precomp.h"

#include <string.h>

#include "7zCrc.h"
#include "CpuArch.h"
#include "Xz.h"

/*
#define XZ_FOOTER_SIG_CHECK(p) (memcmp((p), XZ_FOOTER_SIG, XZ_FOOTER_SIG_SIZE) == 0)
*/
#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)
{}

/*
SRes XzBlock_ReadFooter(CXzBlock *p, CXzStreamFlags f, ISeqInStream *inStream)
{
  return SeqInStream_Read(inStream, p->check, XzFlags_GetCheckSize(f));
}
*/

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)
{}


/* ---------- Xz Streams ---------- */

void Xzs_Construct(CXzs *p)
{}

void Xzs_Free(CXzs *p, ISzAllocPtr alloc)
{}

UInt64 Xzs_GetNumBlocks(const CXzs *p)
{}

UInt64 Xzs_GetUnpackSize(const CXzs *p)
{}

/*
UInt64 Xzs_GetPackSize(const CXzs *p)
{
  UInt64 size = 0;
  size_t i;
  for (i = 0; i < p->num; i++)
    ADD_SIZE_CHECK(size, Xz_GetTotalSize(&p->streams[i]));
  return size;
}
*/

SRes Xzs_ReadBackward(CXzs *p, ILookInStream *stream, Int64 *startOffset, ICompressProgress *progress, ISzAllocPtr alloc)
{}