Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
7zTypes.h File Reference
#include <stddef.h>
+ Include dependency graph for 7zTypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  IByteIn
 
struct  IByteOut
 
struct  ISeqInStream
 
struct  ISeqOutStream
 
struct  ISeekInStream
 
struct  ILookInStream
 
struct  CLookToRead2
 
struct  CSecToLook
 
struct  CSecToRead
 
struct  ICompressProgress
 
struct  ISzAlloc
 

Macros

#define EXTERN_C_BEGIN
 
#define EXTERN_C_END
 
#define SZ_OK   0
 
#define SZ_ERROR_DATA   1
 
#define SZ_ERROR_MEM   2
 
#define SZ_ERROR_CRC   3
 
#define SZ_ERROR_UNSUPPORTED   4
 
#define SZ_ERROR_PARAM   5
 
#define SZ_ERROR_INPUT_EOF   6
 
#define SZ_ERROR_OUTPUT_EOF   7
 
#define SZ_ERROR_READ   8
 
#define SZ_ERROR_WRITE   9
 
#define SZ_ERROR_PROGRESS   10
 
#define SZ_ERROR_FAIL   11
 
#define SZ_ERROR_THREAD   12
 
#define SZ_ERROR_ARCHIVE   16
 
#define SZ_ERROR_NO_ARCHIVE   17
 
#define RINOK(x)   { int __result__ = (x); if (__result__ != 0) return __result__; }
 
#define UINT64_CONST(n)   n ## ULL
 
#define True   1
 
#define False   0
 
#define MY_STD_CALL
 
#define MY_NO_INLINE
 
#define MY_FORCE_INLINE
 
#define MY_CDECL
 
#define MY_FAST_CALL
 
#define IByteIn_Read(p)   (p)->Read(p)
 
#define IByteOut_Write(p, b)   (p)->Write(p, b)
 
#define ISeqInStream_Read(p, buf, size)   (p)->Read(p, buf, size)
 
#define ISeqOutStream_Write(p, buf, size)   (p)->Write(p, buf, size)
 
#define ISeekInStream_Read(p, buf, size)   (p)->Read(p, buf, size)
 
#define ISeekInStream_Seek(p, pos, origin)   (p)->Seek(p, pos, origin)
 
#define ILookInStream_Look(p, buf, size)   (p)->Look(p, buf, size)
 
#define ILookInStream_Skip(p, offset)   (p)->Skip(p, offset)
 
#define ILookInStream_Read(p, buf, size)   (p)->Read(p, buf, size)
 
#define ILookInStream_Seek(p, pos, origin)   (p)->Seek(p, pos, origin)
 
#define LookToRead2_Init(p)   { (p)->pos = (p)->size = 0; }
 
#define ICompressProgress_Progress(p, inSize, outSize)   (p)->Progress(p, inSize, outSize)
 
#define ISzAlloc_Alloc(p, size)   (p)->Alloc(p, size)
 
#define ISzAlloc_Free(p, a)   (p)->Free(p, a)
 
#define IAlloc_Alloc(p, size)   ISzAlloc_Alloc(p, size)
 
#define IAlloc_Free(p, a)   ISzAlloc_Free(p, a)
 
#define MY_offsetof(type, m)   ((size_t)&(((type *)0)->m))
 
#define MY_container_of(ptr, type, m)   ((type *)((char *)(1 ? (ptr) : &((type *)0)->m) - MY_offsetof(type, m)))
 
#define CONTAINER_FROM_VTBL_SIMPLE(ptr, type, m)   ((type *)(ptr))
 
#define CONTAINER_FROM_VTBL(ptr, type, m)   MY_container_of(ptr, type, m)
 
#define CONTAINER_FROM_VTBL_CLS(ptr, type, m)   CONTAINER_FROM_VTBL_SIMPLE(ptr, type, m)
 
#define CHAR_PATH_SEPARATOR   '/'
 
#define WCHAR_PATH_SEPARATOR   L'/'
 
#define STRING_PATH_SEPARATOR   "/"
 
#define WSTRING_PATH_SEPARATOR   L"/"
 

Typedefs

typedef int SRes
 
typedef int WRes
 
typedef unsigned char Byte
 
typedef short Int16
 
typedef unsigned short UInt16
 
typedef int Int32
 
typedef unsigned int UInt32
 
typedef long long int Int64
 
typedef unsigned long long int UInt64
 
typedef size_t SizeT
 
typedef int Bool
 
typedef struct IByteIn IByteIn
 
typedef struct IByteOut IByteOut
 
typedef struct ISeqInStream ISeqInStream
 
typedef struct ISeqOutStream ISeqOutStream
 
typedef struct ISeekInStream ISeekInStream
 
typedef struct ILookInStream ILookInStream
 
typedef struct ICompressProgress ICompressProgress
 
typedef struct ISzAlloc ISzAlloc
 
typedef const ISzAllocISzAllocPtr
 

Enumerations

enum  ESzSeek { SZ_SEEK_SET = 0, SZ_SEEK_CUR = 1, SZ_SEEK_END = 2 }
 

Functions

SRes SeqInStream_Read (const ISeqInStream *stream, void *buf, size_t size)
 
SRes SeqInStream_Read2 (const ISeqInStream *stream, void *buf, size_t size, SRes errorType)
 
SRes SeqInStream_ReadByte (const ISeqInStream *stream, Byte *buf)
 
SRes LookInStream_LookRead (const ILookInStream *stream, void *buf, size_t *size)
 
SRes LookInStream_SeekTo (const ILookInStream *stream, UInt64 offset)
 
SRes LookInStream_Read2 (const ILookInStream *stream, void *buf, size_t size, SRes errorType)
 
SRes LookInStream_Read (const ILookInStream *stream, void *buf, size_t size)
 
void LookToRead2_CreateVTable (CLookToRead2 *p, int lookahead)
 
void SecToLook_CreateVTable (CSecToLook *p)
 
void SecToRead_CreateVTable (CSecToRead *p)
 

Macro Definition Documentation

#define CHAR_PATH_SEPARATOR   '/'

Definition at line 355 of file 7zTypes.h.

#define CONTAINER_FROM_VTBL (   ptr,
  type,
 
)    MY_container_of(ptr, type, m)

Definition at line 337 of file 7zTypes.h.

#define CONTAINER_FROM_VTBL_CLS (   ptr,
  type,
 
)    CONTAINER_FROM_VTBL_SIMPLE(ptr, type, m)

Definition at line 339 of file 7zTypes.h.

#define CONTAINER_FROM_VTBL_SIMPLE (   ptr,
  type,
 
)    ((type *)(ptr))

Definition at line 332 of file 7zTypes.h.

#define EXTERN_C_BEGIN

Definition at line 18 of file 7zTypes.h.

#define EXTERN_C_END

Definition at line 19 of file 7zTypes.h.

#define False   0

Definition at line 98 of file 7zTypes.h.

#define IAlloc_Alloc (   p,
  size 
)    ISzAlloc_Alloc(p, size)

Definition at line 292 of file 7zTypes.h.

#define IAlloc_Free (   p,
 
)    ISzAlloc_Free(p, a)

Definition at line 293 of file 7zTypes.h.

#define IByteIn_Read (   p)    (p)->Read(p)

Definition at line 147 of file 7zTypes.h.

#define IByteOut_Write (   p,
 
)    (p)->Write(p, b)

Definition at line 155 of file 7zTypes.h.

#define ICompressProgress_Progress (   p,
  inSize,
  outSize 
)    (p)->Progress(p, inSize, outSize)

Definition at line 275 of file 7zTypes.h.

#define ILookInStream_Look (   p,
  buf,
  size 
)    (p)->Look(p, buf, size)

Definition at line 215 of file 7zTypes.h.

#define ILookInStream_Read (   p,
  buf,
  size 
)    (p)->Read(p, buf, size)

Definition at line 217 of file 7zTypes.h.

#define ILookInStream_Seek (   p,
  pos,
  origin 
)    (p)->Seek(p, pos, origin)

Definition at line 218 of file 7zTypes.h.

#define ILookInStream_Skip (   p,
  offset 
)    (p)->Skip(p, offset)

Definition at line 216 of file 7zTypes.h.

#define ISeekInStream_Read (   p,
  buf,
  size 
)    (p)->Read(p, buf, size)

Definition at line 196 of file 7zTypes.h.

#define ISeekInStream_Seek (   p,
  pos,
  origin 
)    (p)->Seek(p, pos, origin)

Definition at line 197 of file 7zTypes.h.

#define ISeqInStream_Read (   p,
  buf,
  size 
)    (p)->Read(p, buf, size)

Definition at line 165 of file 7zTypes.h.

#define ISeqOutStream_Write (   p,
  buf,
  size 
)    (p)->Write(p, buf, size)

Definition at line 180 of file 7zTypes.h.

#define ISzAlloc_Alloc (   p,
  size 
)    (p)->Alloc(p, size)

Definition at line 288 of file 7zTypes.h.

#define ISzAlloc_Free (   p,
 
)    (p)->Free(p, a)

Definition at line 289 of file 7zTypes.h.

#define LookToRead2_Init (   p)    { (p)->pos = (p)->size = 0; }

Definition at line 245 of file 7zTypes.h.

#define MY_CDECL

Definition at line 124 of file 7zTypes.h.

#define MY_container_of (   ptr,
  type,
 
)    ((type *)((char *)(1 ? (ptr) : &((type *)0)->m) - MY_offsetof(type, m)))

Definition at line 327 of file 7zTypes.h.

#define MY_FAST_CALL

Definition at line 125 of file 7zTypes.h.

#define MY_FORCE_INLINE

Definition at line 123 of file 7zTypes.h.

#define MY_NO_INLINE

Definition at line 122 of file 7zTypes.h.

#define MY_offsetof (   type,
 
)    ((size_t)&(((type *)0)->m))

Definition at line 306 of file 7zTypes.h.

#define MY_STD_CALL

Definition at line 104 of file 7zTypes.h.

#define RINOK (   x)    { int __result__ = (x); if (__result__ != 0) return __result__; }

Definition at line 53 of file 7zTypes.h.

#define STRING_PATH_SEPARATOR   "/"

Definition at line 357 of file 7zTypes.h.

#define SZ_ERROR_ARCHIVE   16

Definition at line 40 of file 7zTypes.h.

#define SZ_ERROR_CRC   3

Definition at line 29 of file 7zTypes.h.

#define SZ_ERROR_DATA   1

Definition at line 27 of file 7zTypes.h.

#define SZ_ERROR_FAIL   11

Definition at line 37 of file 7zTypes.h.

#define SZ_ERROR_INPUT_EOF   6

Definition at line 32 of file 7zTypes.h.

#define SZ_ERROR_MEM   2

Definition at line 28 of file 7zTypes.h.

#define SZ_ERROR_NO_ARCHIVE   17

Definition at line 41 of file 7zTypes.h.

#define SZ_ERROR_OUTPUT_EOF   7

Definition at line 33 of file 7zTypes.h.

#define SZ_ERROR_PARAM   5

Definition at line 31 of file 7zTypes.h.

#define SZ_ERROR_PROGRESS   10

Definition at line 36 of file 7zTypes.h.

#define SZ_ERROR_READ   8

Definition at line 34 of file 7zTypes.h.

#define SZ_ERROR_THREAD   12

Definition at line 38 of file 7zTypes.h.

#define SZ_ERROR_UNSUPPORTED   4

Definition at line 30 of file 7zTypes.h.

#define SZ_ERROR_WRITE   9

Definition at line 35 of file 7zTypes.h.

#define SZ_OK   0

Definition at line 25 of file 7zTypes.h.

#define True   1

Definition at line 97 of file 7zTypes.h.

#define UINT64_CONST (   n)    n ## ULL

Definition at line 85 of file 7zTypes.h.

#define WCHAR_PATH_SEPARATOR   L'/'

Definition at line 356 of file 7zTypes.h.

#define WSTRING_PATH_SEPARATOR   L"/"

Definition at line 358 of file 7zTypes.h.

Typedef Documentation

typedef int Bool

Definition at line 96 of file 7zTypes.h.

typedef unsigned char Byte

Definition at line 56 of file 7zTypes.h.

typedef struct IByteIn IByteIn

Definition at line 142 of file 7zTypes.h.

typedef struct IByteOut IByteOut

Definition at line 150 of file 7zTypes.h.

Definition at line 267 of file 7zTypes.h.

typedef struct ILookInStream ILookInStream

Definition at line 200 of file 7zTypes.h.

typedef short Int16

Definition at line 57 of file 7zTypes.h.

typedef int Int32

Definition at line 64 of file 7zTypes.h.

typedef long long int Int64

Definition at line 83 of file 7zTypes.h.

typedef struct ISeekInStream ISeekInStream

Definition at line 190 of file 7zTypes.h.

typedef struct ISeqInStream ISeqInStream

Definition at line 158 of file 7zTypes.h.

typedef struct ISeqOutStream ISeqOutStream

Definition at line 173 of file 7zTypes.h.

typedef struct ISzAlloc ISzAlloc

Definition at line 279 of file 7zTypes.h.

typedef const ISzAlloc* ISzAllocPtr

Definition at line 280 of file 7zTypes.h.

typedef size_t SizeT

Definition at line 93 of file 7zTypes.h.

typedef int SRes

Definition at line 43 of file 7zTypes.h.

typedef unsigned short UInt16

Definition at line 58 of file 7zTypes.h.

typedef unsigned int UInt32

Definition at line 65 of file 7zTypes.h.

typedef unsigned long long int UInt64

Definition at line 84 of file 7zTypes.h.

typedef int WRes

Definition at line 49 of file 7zTypes.h.

Enumeration Type Documentation

enum ESzSeek
Enumerator
SZ_SEEK_SET 
SZ_SEEK_CUR 
SZ_SEEK_END 

Definition at line 182 of file 7zTypes.h.

183 {
184  SZ_SEEK_SET = 0,
185  SZ_SEEK_CUR = 1,
186  SZ_SEEK_END = 2
187 } ESzSeek;

Function Documentation

SRes LookInStream_LookRead ( const ILookInStream stream,
void *  buf,
size_t *  size 
)
SRes LookInStream_Read ( const ILookInStream stream,
void *  buf,
size_t  size 
)
SRes LookInStream_Read2 ( const ILookInStream stream,
void *  buf,
size_t  size,
SRes  errorType 
)
SRes LookInStream_SeekTo ( const ILookInStream stream,
UInt64  offset 
)
void LookToRead2_CreateVTable ( CLookToRead2 p,
int  lookahead 
)
void SecToLook_CreateVTable ( CSecToLook p)
void SecToRead_CreateVTable ( CSecToRead p)
SRes SeqInStream_Read ( const ISeqInStream stream,
void *  buf,
size_t  size 
)
SRes SeqInStream_Read2 ( const ISeqInStream stream,
void *  buf,
size_t  size,
SRes  errorType 
)
SRes SeqInStream_ReadByte ( const ISeqInStream stream,
Byte buf 
)