#include <cstddef>
Go to the source code of this file.
Classes | |
struct | CLookToRead |
struct | CSecToLook |
struct | CSecToRead |
struct | IByteIn |
struct | IByteOut |
struct | ICompressProgress |
struct | ILookInStream |
struct | ISeekInStream |
struct | ISeqInStream |
struct | ISeqOutStream |
struct | ISzAlloc |
Macros | |
#define | CHAR_PATH_SEPARATOR '/' |
#define | EXTERN_C_BEGIN |
#define | EXTERN_C_END |
#define | False 0 |
#define | IAlloc_Alloc(p, size) (p)->Alloc((p), size) |
#define | IAlloc_Free(p, a) (p)->Free((p), a) |
#define | LookToRead_BUF_SIZE (1 << 14) |
#define | MY_CDECL |
#define | MY_FAST_CALL |
#define | MY_STD_CALL |
#define | RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; } |
#define | STRING_PATH_SEPARATOR "/" |
#define | SZ_ERROR_ARCHIVE 16 |
#define | SZ_ERROR_CRC 3 |
#define | SZ_ERROR_DATA 1 |
#define | SZ_ERROR_FAIL 11 |
#define | SZ_ERROR_INPUT_EOF 6 |
#define | SZ_ERROR_MEM 2 |
#define | SZ_ERROR_NO_ARCHIVE 17 |
#define | SZ_ERROR_OUTPUT_EOF 7 |
#define | SZ_ERROR_PARAM 5 |
#define | SZ_ERROR_PROGRESS 10 |
#define | SZ_ERROR_READ 8 |
#define | SZ_ERROR_THREAD 12 |
#define | SZ_ERROR_UNSUPPORTED 4 |
#define | SZ_ERROR_WRITE 9 |
#define | SZ_OK 0 |
#define | True 1 |
#define | UINT64_CONST(n) n ## ULL |
#define | WCHAR_PATH_SEPARATOR L'/' |
#define | WSTRING_PATH_SEPARATOR L"/" |
Typedefs | |
typedef int | Bool |
typedef unsigned char | Byte |
typedef short | Int16 |
typedef int | Int32 |
typedef long long int | Int64 |
typedef size_t | SizeT |
typedef int | SRes |
typedef unsigned short | UInt16 |
typedef unsigned int | UInt32 |
typedef unsigned long long int | UInt64 |
typedef int | WRes |
Enumerations | |
enum | ESzSeek { SZ_SEEK_SET = 0, SZ_SEEK_CUR = 1, SZ_SEEK_END = 2 } |
Functions | |
SRes | LookInStream_LookRead (ILookInStream *stream, void *buf, size_t *size) |
SRes | LookInStream_Read (ILookInStream *stream, void *buf, size_t size) |
SRes | LookInStream_Read2 (ILookInStream *stream, void *buf, size_t size, SRes errorType) |
SRes | LookInStream_SeekTo (ILookInStream *stream, UInt64 offset) |
void | LookToRead_CreateVTable (CLookToRead *p, int lookahead) |
void | LookToRead_Init (CLookToRead *p) |
void | SecToLook_CreateVTable (CSecToLook *p) |
void | SecToRead_CreateVTable (CSecToRead *p) |
SRes | SeqInStream_Read (ISeqInStream *stream, void *buf, size_t size) |
SRes | SeqInStream_Read2 (ISeqInStream *stream, void *buf, size_t size, SRes errorType) |
SRes | SeqInStream_ReadByte (ISeqInStream *stream, Byte *buf) |
#define LookToRead_BUF_SIZE (1 << 14) |
Definition at line 190 of file Types.h.
Referenced by LookToRead_Look_Exact(), and LookToRead_Look_Lookahead().
#define RINOK | ( | x | ) | { int __result__ = (x); if (__result__ != 0) return __result__; } |
Definition at line 52 of file Types.h.
Referenced by LzmaFile::DecodeAll(), LzmaFile::DecodeBuffer(), LookInStream_LookRead(), LookInStream_Read2(), LzmaDec_Allocate(), LzmaDec_AllocateProbs(), LzmaDec_DecodeReal2(), LzmaFile::Open(), SeqInStream_Read2(), and SeqInStream_ReadByte().
#define SZ_ERROR_DATA 1 |
Definition at line 27 of file Types.h.
Referenced by LzmaFile::DecodeAll(), LzmaFile::DecodeBuffer(), LzmaFile::FillArray(), LzmaDec_DecodeReal(), LzmaDec_DecodeToDic(), main(), and LzmaFile::ReadNextNumber().
#define SZ_ERROR_INPUT_EOF 6 |
Definition at line 32 of file Types.h.
Referenced by LookInStream_Read(), LzmaDecode(), SeqInStream_Read(), and SeqInStream_ReadByte().
#define SZ_ERROR_MEM 2 |
Definition at line 28 of file Types.h.
Referenced by LzmaDec_Allocate(), LzmaDec_AllocateProbs2(), and main().
#define SZ_ERROR_READ 8 |
Definition at line 34 of file Types.h.
Referenced by FileInStream_Read(), FileSeqInStream_Read(), and main().
#define SZ_ERROR_UNSUPPORTED 4 |
Definition at line 30 of file Types.h.
Referenced by LzmaProps_Decode().
#define SZ_OK 0 |
Definition at line 25 of file Types.h.
Referenced by LzmaFile::DecodeAll(), LzmaFile::DecodeBuffer(), FileInStream_Read(), FileSeqInStream_Read(), LzmaFile::FillArray(), LookInStream_LookRead(), LookInStream_Read2(), LookToRead_Look_Exact(), LookToRead_Look_Lookahead(), LookToRead_Read(), LookToRead_Skip(), LzmaDec_Allocate(), LzmaDec_AllocateProbs(), LzmaDec_AllocateProbs2(), LzmaDec_DecodeReal(), LzmaDec_DecodeToBuf(), LzmaDec_DecodeToDic(), LzmaDecode(), LzmaProps_Decode(), main(), LzmaFile::Open(), LzmaFile::ReadNextNumber(), SeqInStream_Read2(), and SeqInStream_ReadByte().
#define True 1 |
Definition at line 96 of file Types.h.
Referenced by LzmaDec_Init().
enum ESzSeek |
Enumerator | |
---|---|
SZ_SEEK_SET | |
SZ_SEEK_CUR | |
SZ_SEEK_END |
SRes LookInStream_LookRead | ( | ILookInStream * | stream, |
void * | buf, | ||
size_t * | size | ||
) |
Definition at line 40 of file 7zStream.cc.
References ILookInStream::Look, RINOK, ILookInStream::Skip, and SZ_OK.
Referenced by SecToLook_Read().
SRes LookInStream_Read | ( | ILookInStream * | stream, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 64 of file 7zStream.cc.
References LookInStream_Read2(), and SZ_ERROR_INPUT_EOF.
SRes LookInStream_Read2 | ( | ILookInStream * | stream, |
void * | buf, | ||
size_t | size, | ||
SRes | errorType | ||
) |
Definition at line 50 of file 7zStream.cc.
References ILookInStream::Read, RINOK, findQualityFiles::size, and SZ_OK.
Referenced by LookInStream_Read().
SRes LookInStream_SeekTo | ( | ILookInStream * | stream, |
UInt64 | offset | ||
) |
Definition at line 34 of file 7zStream.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, ILookInStream::Seek, SZ_SEEK_SET, and protons_cff::t.
void LookToRead_CreateVTable | ( | CLookToRead * | p, |
int | lookahead | ||
) |
Definition at line 134 of file 7zStream.cc.
References ILookInStream::Look, LookToRead_Look_Exact(), LookToRead_Look_Lookahead(), LookToRead_Read(), LookToRead_Seek(), LookToRead_Skip(), ILookInStream::Read, CLookToRead::s, ILookInStream::Seek, and ILookInStream::Skip.
void LookToRead_Init | ( | CLookToRead * | p | ) |
void SecToLook_CreateVTable | ( | CSecToLook * | p | ) |
Definition at line 155 of file 7zStream.cc.
References ISeqInStream::Read, CSecToLook::s, and SecToLook_Read().
void SecToRead_CreateVTable | ( | CSecToRead * | p | ) |
Definition at line 166 of file 7zStream.cc.
References ISeqInStream::Read, CSecToRead::s, and SecToRead_Read().
SRes SeqInStream_Read | ( | ISeqInStream * | stream, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 22 of file 7zStream.cc.
References SeqInStream_Read2(), and SZ_ERROR_INPUT_EOF.
Referenced by LzmaFile::Open().
SRes SeqInStream_Read2 | ( | ISeqInStream * | stream, |
void * | buf, | ||
size_t | size, | ||
SRes | errorType | ||
) |
Definition at line 8 of file 7zStream.cc.
References ISeqInStream::Read, RINOK, findQualityFiles::size, and SZ_OK.
Referenced by SeqInStream_Read().
SRes SeqInStream_ReadByte | ( | ISeqInStream * | stream, |
Byte * | buf | ||
) |
Definition at line 27 of file 7zStream.cc.
References ISeqInStream::Read, RINOK, SZ_ERROR_INPUT_EOF, and SZ_OK.