fceugx/source/sz/7zDecode.h

38 lines
978 B
C
Raw Normal View History

2008-09-02 03:55:12 +02:00
/* 7zDecode.h */
#if defined(_LZMA_OUT_READ) && !defined(_LZMA_IN_CB)
#error "Fixme: _LZMA_OUT_READ && _LZMA_IN_CB isn't currently possible!"
#endif
#ifndef __7Z_DECODE_H
#define __7Z_DECODE_H
#include "7zItem.h"
#include "7zAlloc.h"
#ifdef _LZMA_IN_CB
#include "7zIn.h"
#endif
SZ_RESULT SzDecode(const CFileSize *packSizes, const CFolder *folder,
#ifdef _LZMA_IN_CB
ISzInStream *stream,
#else
const Byte *inBuffer,
#endif
2008-10-14 09:18:03 +02:00
Byte *outBuffer, size_t outSize,
2008-09-02 03:55:12 +02:00
size_t *outSizeProcessed, ISzAlloc *allocMain);
#ifdef _LZMA_OUT_READ
#ifndef _LZMA_TEMP_BUFFER_SIZE
2008-10-14 11:21:58 +02:00
#define _LZMA_TEMP_BUFFER_SIZE (2048) // size of the temporary buffer in bytes
2008-09-02 03:55:12 +02:00
#endif
SZ_RESULT SzDecode2(const CFileSize *packSizes, const CFolder *folder,
ISzInStream *stream,
2008-10-14 09:18:03 +02:00
Byte *outBuffer, size_t outSize,
2008-09-02 03:55:12 +02:00
size_t *outSizeProcessed, ISzAlloc *allocMain,
size_t *fileOffset, size_t *fileSize);
#endif // #ifdef _LZMA_OUT_READ
#endif