10 #ifndef EXTERN_C_BEGIN 12 #define EXTERN_C_BEGIN extern "C" { 13 #define EXTERN_C_END } 15 #define EXTERN_C_BEGIN 28 #define SZ_ERROR_DATA 1 29 #define SZ_ERROR_MEM 2 30 #define SZ_ERROR_CRC 3 31 #define SZ_ERROR_UNSUPPORTED 4 32 #define SZ_ERROR_PARAM 5 33 #define SZ_ERROR_INPUT_EOF 6 34 #define SZ_ERROR_OUTPUT_EOF 7 35 #define SZ_ERROR_READ 8 36 #define SZ_ERROR_WRITE 9 37 #define SZ_ERROR_PROGRESS 10 38 #define SZ_ERROR_FAIL 11 39 #define SZ_ERROR_THREAD 12 41 #define SZ_ERROR_ARCHIVE 16 42 #define SZ_ERROR_NO_ARCHIVE 17 47 typedef unsigned WRes;
53 #define RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; } 57 #define MY_FAST_CALL __fastcall 66 unsigned char (*Read)(
void *
p);
71 void (*Write)(
void *
p,
unsigned char b);
88 size_t (*Write)(
void *
p,
const void *
buf,
size_t size);
127 #define LookToRead_BUF_SIZE (1 << 14) 164 void *(*Alloc)(
void *
p,
size_t size);
168 #define IAlloc_Alloc(p, size) (p)->Alloc((p), size) 169 #define IAlloc_Free(p, a) (p)->Free((p), a) Definition: 7zTypes.h:162
ISeqInStream s
Definition: 7zTypes.h:151
SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size)
Definition: 7zStream.c:68
SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType)
Definition: 7zStream.c:54
ILookInStream * realStream
Definition: 7zTypes.h:144
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
Definition: 7zStream.c:12
GLuint address
Definition: glext.h:10300
Definition: 7zTypes.h:100
int WRes
Definition: 7zTypes.h:49
GLsizeiptr size
Definition: glext.h:6559
SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size)
Definition: 7zStream.c:26
ISeekInStream * realStream
Definition: 7zTypes.h:132
size_t size
Definition: 7zTypes.h:134
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void SecToRead_CreateVTable(CSecToRead *p)
Definition: 7zStream.c:170
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
void SecToLook_CreateVTable(CSecToLook *p)
Definition: 7zStream.c:159
ISeqInStream s
Definition: 7zTypes.h:143
#define EXTERN_C_END
Definition: 7zTypes.h:16
int SRes
Definition: 7zTypes.h:44
Definition: 7zTypes.h:141
void LookToRead_Init(CLookToRead *p)
Definition: 7zStream.c:148
SRes SeqInStream_ReadByte(ISeqInStream *stream, unsigned char *buf)
ILookInStream s
Definition: 7zTypes.h:131
GLfloat GLfloat p
Definition: glext.h:9809
SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size)
Definition: 7zStream.c:44
GLuint GLuint stream
Definition: glext.h:8189
size_t pos
Definition: 7zTypes.h:133
Definition: 7zTypes.h:157
signed __int64 int64_t
Definition: stdint.h:135
Definition: 7zTypes.h:129
#define EXTERN_C_BEGIN
Definition: 7zTypes.h:15
ESzSeek
Definition: 7zTypes.h:93
SRes LookInStream_SeekTo(ILookInStream *stream, uint64_t offset)
Definition: 7zStream.c:38
GLintptr offset
Definition: glext.h:6560
#define LookToRead_BUF_SIZE
Definition: 7zTypes.h:127
Definition: 7zTypes.h:149
ILookInStream * realStream
Definition: 7zTypes.h:152
Definition: 7zTypes.h:106
unsigned __int64 uint64_t
Definition: stdint.h:136
void LookToRead_CreateVTable(CLookToRead *p, int lookahead)
Definition: 7zStream.c:138