mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-26 20:01:55 +01:00
02da650191
- added snes_gx 4.3.4
42 lines
933 B
C
42 lines
933 B
C
/* 7zIn.h -- 7z Input functions
|
|
2008-11-23 : Igor Pavlov : Public domain */
|
|
|
|
#ifndef __7Z_IN_H
|
|
#define __7Z_IN_H
|
|
|
|
#include "7zHeader.h"
|
|
#include "7zItem.h"
|
|
|
|
typedef struct
|
|
{
|
|
CSzAr db;
|
|
|
|
UInt64 startPosAfterHeader;
|
|
UInt64 dataPos;
|
|
|
|
UInt32 *FolderStartPackStreamIndex;
|
|
UInt64 *PackStreamStartPositions;
|
|
UInt32 *FolderStartFileIndex;
|
|
UInt32 *FileIndexToFolderIndexMap;
|
|
} CSzArEx;
|
|
|
|
void SzArEx_Init(CSzArEx *p);
|
|
void SzArEx_Free(CSzArEx *p, ISzAlloc *alloc);
|
|
UInt64 SzArEx_GetFolderStreamPos(const CSzArEx *p, UInt32 folderIndex, UInt32 indexInFolder);
|
|
int SzArEx_GetFolderFullPackSize(const CSzArEx *p, UInt32 folderIndex, UInt64 *resSize);
|
|
|
|
/*
|
|
Errors:
|
|
SZ_ERROR_NO_ARCHIVE
|
|
SZ_ERROR_ARCHIVE
|
|
SZ_ERROR_UNSUPPORTED
|
|
SZ_ERROR_MEM
|
|
SZ_ERROR_CRC
|
|
SZ_ERROR_INPUT_EOF
|
|
SZ_ERROR_FAIL
|
|
*/
|
|
|
|
SRes SzArEx_Open(CSzArEx *p, ILookInStream *inStream, ISzAlloc *allocMain, ISzAlloc *allocTemp);
|
|
|
|
#endif
|